Question

I am using Asian characters in my android app, I learned already that some characters are not displayable because they are not supported by the system's fonts. I query a database with Asian characters and I often retrieve signs which are not displayable. These cases are usually not a problem for my application, but are irritating to the user if I display not supported characters. Is there something like a test of a sign for displayability in Android?

Was it helpful?

Solution

This will be helpful

public boolean isPrintable( char c ) {
    Character.UnicodeBlock block = Character.UnicodeBlock.of( c );
    return (!Character.isISOControl(c)) &&
                    block != null &&
                    block != Character.UnicodeBlock.SPECIALS;
}

Please refer printable char in java

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top