Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

can notepad++ auto-detect Shift_JIS encoding

I work alot with Japanese comment source so each times I open a source file, i must do "encoding / character set / ShiftJIS". Can we make Notepad++ auto-detect it ? I've tried alot with options in Settings/Preferences... but didn't find anything helpful, could we make it through a plugin or rebuild NPP with some additional source?

like image 202
Luke Avatar asked Jan 02 '13 07:01

Luke


1 Answers

This is because the font used by the default theme (Settings -> Style Configurator -> Select theme) is set to Courier New and does not play well with Shift-JIS. If you change your font to something more JP friendly (e.g. MS ゴシック), your file should display JP text correctly without having to change the preferences. You can also change to a different theme which uses a more JP friendly font. Themes where the font is not set (left blank) should work too.

Hope this solves your issue.

like image 81
ken Avatar answered Sep 25 '22 01:09

ken