My client has a ton of Japanese text files which are encoded in Shift-JIS.

They need a utility which can convert these files to UTF-8.

Ideally, the tool would offer both command-line and interactive options.

Any suggestions?

(PS - could someone with rep add the "shift-jis" tag?)

link|improve this question

80% accept rate
feedback

2 Answers

up vote 2 down vote accepted

iconv (or iconv, as the case may be).

link|improve this answer
iconv <original.file> -f SHIFT-JIS -t UTF8 -c -o <converted.file> – Nicolas Raoul Oct 20 '11 at 6:32
feedback

This is the script you want, and it's in Python: http://liangsun.info/2011/03/11/python-script-to-transform-shift-jis-to-utf-8-encoding/

link|improve this answer
Bare except is evil. – Ignacio Vazquez-Abrams Apr 15 '11 at 7:47
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.