I have a thermal printer that only supports traditional Chinese characters except Latin. Is there a way to verify that given the CJK character in Unicode, is it a valid traditional Big-5 encoded Chinese character?
UPDATE
Here is the method I use to check if String has Unicode CJK.
public static boolean isChineseText(String s) { for (int i = 0; s != null && s.length() > 0 && i < s.length(); i++) { char ch = s.charAt(i); Character.UnicodeBlock block = Character.UnicodeBlock.of(ch); if (Character.UnicodeBlock.CJK_UNIFIED_IDEOGRAPHS.equals(block) || Character.UnicodeBlock.CJK_COMPATIBILITY_IDEOGRAPHS .equals(block) || Character.UnicodeBlock.CJK_UNIFIED_IDEOGRAPHS_EXTENSION_A .equals(block)) {
java android unicode chinese-locale big5
Divyansh Goenka Dec 11 '14 at 2:40 2014-12-11 02:40
source share