enca -- detect and convert encoding of text files
shell> apt-get install enca shell> brew install enca
shell> enca --list languages shell> enca -L chinese *.txt shell> enconv -L chinese -x UTF-8 *.txt