一行命令GBK转UTF-8
基本语法 iconv [选项] -f 原编码 -t 目标编码 [输入文件]
iconv -f GBK -t UTF-8 yourfile.txt -o output.txt
不知道原始编码
可以使用file yourfile.txt查看
转换文件名的编码
convmv -f GBK -t UTF-8 --notest *.txt
学习:菜鸟教程iconv

iconv -f GBK -t UTF-8 yourfile.txt -o output.txt
可以使用file yourfile.txt查看
转换文件名的编码
convmv -f GBK -t UTF-8 --notest *.txt
学习:菜鸟教程iconv