转换编码utf-8

用这个enca -x utf-8 * 或者是 filename,还有别的方法,参见:https://blog.csdn.net/a280606790/article/details/8504133

安装用:
apt-get install enca -y --force-yes

我实际用的是:
find . -name "*.c"|xargs enca -L zh_CN -x UTF-8
find . -name "*.h"|xargs enca -L zh_CN -x UTF-8
否则以前用gbk编码的文件,很多用sublime和source insight4打开后是乱码。
原文地址:https://www.cnblogs.com/tangxiaosheng/p/10096611.html