developer@2015:~$ locale -a 查看本地字符集developer@2015:~$ locale -m 查看所有支持的字符集
file -i input.txt 查看文件字符集
将文件从gb2312转为utf8iconv -f gb2312 -t utf8 input.txt -o output.txt
linux文件字符集转换
原文:http://www.cnblogs.com/excite/p/4453049.html