使用命令“file -i /opt/test.log”来查看test.log的文件编码格式
将上面我们查看的test.log的字符编码转化为UTF-8编码,并且重新输出到test1.log。我们使用命令
“iconv test.log -f iso-8859-1 -t UTF-8 -o test1.log --verbose”
使用命令“file -i /opt/test.log”来查看test.log的文件编码格式
将上面我们查看的test.log的字符编码转化为UTF-8编码,并且重新输出到test1.log。我们使用命令
“iconv test.log -f iso-8859-1 -t UTF-8 -o test1.log --verbose”