How to display Japanese character in eclipse

eclipse, java, string

Solution

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.

Problem

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.

Original source