Unicode Block

  • Determine which type of language that the string contains

String str = "大家,!。驚いた彼は道を走っていった";
char [] charList = str.toCharArray();
for (char c : charList) {
	Character.UnicodeBlock ub = Character.UnicodeBlock.of(c);
	System.out.println(ub);
}

Last updated

Was this helpful?