Retrieve unicode from TextField
Hello!I have a TextField with the following text: \u2523.I just have to show its translated unicode char on a JLabel.But its showing "\u2523" instead of the unicode char...I just use .getText() from TextField and .setText of JLabel.Any
[297 byte] By [
igorjra] at [2007-11-26 20:45:26]

# 1
Skip the \ and u, pass the remainder of the string to Integer.parseInt along with the number 16 to tell it to parse the number as a hexadecimal number. Finally, cast the int to char and append it to the empty string.