9

I am using eclipse Juno as Java IDE and in my java code comments and logging statement are in Japanese.

eclipse is displaying junk character instead of correct Japanese characters. I followed this post to resolve the issue and made changes in eclipse.ini file. But now I am getting String literal is not properly closed by a double-quote error.

Ankur Lathi
  • 7,636
  • 5
  • 37
  • 49
Vinod
  • 1,076
  • 2
  • 16
  • 33
  • did you try setting a japanese font in eclipse inside preferences>general>appearance>colors and font? – pratZ Jul 19 '13 at 09:11
  • May this link help you to resolve your problem. [1]: http://stackoverflow.com/questions/14772275/utf-8-text-hindi-not-getting-displayed-on-browser-window-or-eclipse-console – Ankur Lathi Jul 19 '13 at 09:12
  • @pratZ I did not find any Japanese font option in preferences>general>appearance>colors and font. – Vinod Jul 19 '13 at 09:16
  • @AnkurLathi Thanks, issue got resolved by setting UTF-8 encoding in Preferences>General>Workspace>Text file encoding>other>UTF-8 – Vinod Jul 19 '13 at 09:21

1 Answers1

11

You need to tell eclipse to use UTF-8 for its stdout console. You can set that by Window > Preferences > General > Workspace > Text File Encoding.

enter image description here

Ankur Lathi
  • 7,636
  • 5
  • 37
  • 49