I have a problem with the charset on my program.
Using netbeans, when I run my program, on the output window opçõesshows as expected but using command prompt it shows like opþ§es.
On project properties, encoding is set to UTF-8 so I changed to windows-1252 (I believe that this is the portuguese charset) and now opções shows as op├º├Áes.
How can I fix this to opções shows as opções?
favolas
Don’t change anything in your program. If it works correctly in NetBeans, then it runs correctly. You’re seeing strange characters in the Windows command prompt because it doesn’t handle non-ascii chars correctly. The problem is in the Windows command prompt, not in your program.
See Unicode characters in Windows command line – how?