I have a character code in a Windows-1251 code table. How can I get the code for this character in the UTF-8 code table?
For example, I have the character "A" with 192 encoded in Windows-1251, the corresponding utf-8 code is 1040
How can I initialize a character or char in Java with code 192 from the Windows-1251 code table?
char c = (char) 192; // how to specify the encoding?
source share