Is there a reliable way to determine the Unicode value of any character? For example, the following code
String string = "Việt";
for (int i = 0; i < string.length(); ++i)
{
char c = string.charAt(i);
System.out.println(c + " = " + Character.getNumericValue(c));
}
Gives this output:
V = 31
i = 18
? = -1
t = 29
Not too helpful, since the one character I really care about is shown as -1.