中文乱码问题

1、转换文件内容编码
Windows下生成的纯文本文件,其中文编码为GBK,在Ubuntu下显示为乱码,可以使用iconv命令进行转换:
iconv -f gbk -t utf8 source_file > target_file
 
参考文章:http://www.cnblogs.com/end/archive/2011/04/19/2021507.html
原文地址:https://www.cnblogs.com/lipeil/p/2597776.html