用这个enca -x utf-8 * 或者是 filename,还有别的方法,参见:https://blog.youkuaiyun.com/a280606790/article/details/8504133
我实际用的是:
find . -name "*.c"|xargs enca -x utf-8
find . -name "*.h"|xargs enca -x utf-8
否则以前用gbk编码的文件,很多用sublime和source insight4打开后是乱码。
用这个enca -x utf-8 * 或者是 filename,还有别的方法,参见:https://blog.youkuaiyun.com/a280606790/article/details/8504133
我实际用的是:
find . -name "*.c"|xargs enca -x utf-8
find . -name "*.h"|xargs enca -x utf-8
否则以前用gbk编码的文件,很多用sublime和source insight4打开后是乱码。
转载于:https://www.cnblogs.com/tangxiaosheng/p/10096611.html