Nap
Nap

Reputation: 8286

Japanese Text are displayed as garbled text in Eclipse for non java/jsp file like js/inc

I would like to ask how can i display Japanese text in Eclipse properly. I work in Japan and the code we have has a lot of Japanese characters. I just notice that for .java and .jsp file, that all the Japanese comments and text are displayed properly as Japanese. However, for other filesm such as js (Javascript) file or inc (include) file that the Japanese charctyer are not displayed properly.

I already checked the settings and the text is set to MS932 encoding. Which I think is the Shift-JIS encoding for Japanese text. Any ideas?

Upvotes: 1

Views: 4287

Answers (1)

Jani Hartikainen
Jani Hartikainen

Reputation: 43253

Few things come to mind

  • Files might be encoded with UTF-8 instead of SJIS
  • Eclipse might be using a different font for the files with no kana support
  • You say you checked the encoding, but did you check the file itself, or Eclipse's chosen encoding for them? Could be a mismatch.

You could try asking your japanese colleagues. I'm sure they've encountered this more than few times.

Upvotes: 1

Related Questions