Mac下文件的编码及修改编码
作者:互联网
brew install enca
# Enca语法
Usage: enca [-L LANGUAGE] [OPTION]... [FILE]...
enconv [-L LANGUAGE] [OPTION]... [FILE]...
Detect encoding of text files and convert them if required.
# Enca用法
enca -L zh_CN file # 检查文件的编码
enca -L zh_CN -x UTF-8 file # 将文件编码转换为"UTF-8"编码
enca -L zh_CN -x UTF-8 file1 file2 # 如果不想覆盖原文件可以这样
Linux下GBK文件编码批量转换UTF-8命令
https://blog.csdn.net/u012724167/article/details/77248919
标签:编码,UTF,enca,...,修改,Mac,zh,CN 来源: https://www.cnblogs.com/daysme/p/10676173.html