learned from http://notepad2.blogspot.ca/2012/07/mac-os-x-convert-gb2312gbkgb18030.html
Mac OS X comes with the iconv utility:# convert from cp936 to utf-8 iconv -f cp936 -t utf-8 chinese-gb2312.txt > chinese-utf8.txt # To list the encodings that iconv supports: iconv -l