unicode - Java: Convert String "\uFFFF" into char -
Is there a standard method for converting string "\ uFFFF" into a character which means that the string in a six character Presentation is a Unicode character?
four c = "\ uFFFF". TocharArray () [0];
The value is defined directly as the desired string, and the entire sequence is realized as a single character.
Another way, if you have a hard-code value:
four c = '\ uFFFF';
Note that \ uFFFF
does not appear to be a suitable Unicode character, but try with \ u041f
for example.
Comments
Post a Comment