List of utility methods to do Unicode Create
String | toUnicodeValue(char c) to Unicode Value return "\\u" + Integer.toHexString(c | 0x1000).substring(1); |
String | toUnicodeValue(char c) to Unicode Value String s = Integer.toHexString(c); int length = s.length(); for (int i = 1; i < 5 - length; i++) { s = "0" + s; return "\\u" + s.toUpperCase(); |