[Mac] How to fix Run/Debug Console Encoding Issues
Maybe this will help someone...
Default encoding on Mac OS X is macroman, but I need windows-1252 for my project.
Adding -Dfile.encoding=windows-1252 to the VM options in Run/Debug config changed output with System.out.println, but
reading the console with System.in.read() still gave the macroman characrter codes - maybe a bug.
My solution was to change the default encoding of IDEA by modifiying
Contents/Info.plist.I added
<string>windows-1252</string>
to the Java/Properties section.
请先登录再写评论。