I've just begun learning Java and seem to be having a problem with character encoding. It's essentially the same issue as was covered here:
Except that the fix in that thread, the command 'chcp 1252', hasn't made any difference.
I'm in the UK, so I can type the Pound sign natively into any app. such as the Notepad++ I use for coding.
But when I run the Java app. that uses it (a simple console string-manipulation thing), I always get the wrong character.
I found two Unicode values for the symbol:
\u00A3 - gives a lowercase 'u' with acute accent
\u20A4 - gives a question mark (?)
Typing the character natively into the program gives me the 'u'. In fact, after chcp 1252, that's what I get if I type the same key in the console.
Notepad++ has the option to encode the .java source file as UTF-8, but if I do this I get compiler errors for characters at the very start of the file (where I can't actually see any characters - 'public....' should be right at the start) and the character that's displayed is still wrong.
Any idea how I can remedy this? Thanks in advance.