Java Utililty Methods Unicode Create

List of utility methods to do Unicode Create

Description

The list of methods to do Unicode Create are organized into topic(s).

Method

StringtoUnicodeValue(char c)
to Unicode Value
return "\\u" + Integer.toHexString(c | 0x1000).substring(1);
StringtoUnicodeValue(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();