iconv --list :列出iconv支持的编码列表
MacOS:
iconv -f GBK -t UTF8 from.txt > to.txt
iconv -f UTF-8-t GBK from.txt > to.txt
Linux:
iconv -f 原编码 -t 新编码 filename -o newfile
iconv --list :列出iconv支持的编码列表
MacOS:
iconv -f GBK -t UTF8 from.txt > to.txt
iconv -f UTF-8-t GBK from.txt > to.txt
Linux:
iconv -f 原编码 -t 新编码 filename -o newfile
本文标题:MacOS/Linux 文件编码转换
本文链接:https://www.haomeiwen.com/subject/rzqauctx.html
网友评论