Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to display Japanese character in eclipse [duplicate]

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.

like image 556
Vinod Avatar asked Jul 19 '13 09:07

Vinod


People also ask

How do I display Japanese characters in Eclipse?

You can set that by Window > Preferences > General > Workspace > Text File Encoding.

How do I enable Unicode in Japanese?

Press "Change System Locale" and select "Japanese (Japan)" from the drop-down menu. To make sure the box that says "Beta: Use Unicode UTF-8 for worldwide language support" is UNCHECKED, this causes a heap of problems for programs and files that just cause them to appear strange or incorrectly.


1 Answers

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

like image 64
Ankur Lathi Avatar answered Oct 04 '22 13:10

Ankur Lathi