Created
July 13, 2017 06:49
-
-
Save akr4/4312ff9ae876269a6765e1e87247455f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String a = "𠮷"; | |
System.out.println("original: " + a); | |
System.out.println("length: " + a.length()); | |
System.out.println("decoded: " + a.codePoints().mapToObj(Character::toChars).map(String::valueOf).collect(Collectors.joining(","))); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
gist にはサロゲートペアをコメントできないみたい (?) なので XXX としてますが元の文字