How to support UTF-8 encoding in Eclipse

Katty picture Katty · Feb 7, 2012 · Viewed 218k times · Source

How can I add UTF-8 support in eclipse? I want to add for example Russian language but eclipse won't support it. What should I do? Please guide me.

Answer

Sajan Chandran picture Sajan Chandran · Feb 7, 2012

Try this

  • 1) Window > Preferences > General > Content Types, set UTF-8 as the default encoding for all content types.

  • 2) Window > Preferences > General > Workspace, set Text file encoding to Other : UTF-8