Encoding is a pretty troubling topic if not care is taken! So you better make sure which settings your favourite IDE is using. Typically UTF-8 is the most flexible ! Here is a short summary how to set it up for eclipse.

  • For a global encoding setting add -Dfile.encoding=UTF-8 to eclipse.ini.
  • For setting the encoding on a per workspace basis, use Preferences->General->Workspace!
  • To set the encoding on a per project basis us the tip as documented here. Or shortly open project properties and change to UTF-8

The last one I guess should be the preferred as it does not rely on individual developers to setup their IDE properly, the settings are stored locally with the project.