Yu-Chieh’s Blog (Y.C. Chang)

Ruby on Rails / Rubygems / FullStack / Git / Mac notes.

Converting File to Utf8 Encode by Iconv

  • Sometimes, we need to convert file from different encode to utf8 before we may open and edit it. iconv command make it easy.
1
2
# convert input_file from big5 encode to utf8 encode
$ iconv -f BIG5 -t UTF8 input_file > output_file
  • done.

Comments