JAVA
java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import java.io.PrintStream;
import java.io.UnsupportedEncodingException;
public class UnicodeTest {
public static void main (String[] args) throws UnsupportedEncodingException {
String supported = "\u2655";
String unsupported = "♕";
PrintStream out = new PrintStream(System.out, true, "UTF-16");
out.println("Unicode escape notation works up to \\uffff: " + supported);
out.println("Copying the unicode chars to source code doesn't work': " + unsupported);
out.println("Reference by integer code point:");
for(int i=129296; i<=129431; i++) {
out.println(i + ": " + String.valueOf(Character.toChars(i)));
}
}
}
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run