- In Preferences->Java->Installed JREs, choose the JRE you are using.
- Click Edit to show Edit JRE dialog
- Input -Dfile.encoding=UTF-8 in Default VM Arguments
Second, we need to configure all the Run (Debug) configurations.
- In Common tab, select UTF-8 as Console Encoding
Eclipse 3.4 does not have this prolem. It can display Chinese correctly by default.