JaVa
   

Defining Unicode Characters

Unicode characters can be defined using the "\u" character escape sequence, followed by the hexadecimal notation of that character. For example, the hexadecimal notation for the number 65 is 0041, which is (4*16) + 1. So the following code would assign the letter A to the character variable letter.

char letter = '\u0041';


JaVa
   
Comments