문제

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?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top