需要iconv工具:
yum install glibc* (安装工具)
例如:iconv -f gb2312 ceshi.txt -o cheshinew.txt 将原文件ceshi.txt以编码gb2312输出到新文件ceshinew.txt.
iconv -l 列出所有的字符集。