> For the complete documentation index, see [llms.txt](https://petercheng7788.gitbook.io/developer-note/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://petercheng7788.gitbook.io/developer-note/programming-language/java-concept/unicode-block.md).

# Unicode Block

* Determine which type of language that the string contains

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

* English mostly is Basic\_Latin
* Chinese mostly is CJK\_UNIFIED\_IDEOGRAPHS
* Reference: <https://www.tutorialspoint.com/java/lang/java_lang_character.unicodeblock.htm>
