test.log是utf-16的编码
cat test.log会报错
但是我们可以cat的时候指定编码格式
iconv -f 文件编码 -t 终端编码 input.log
iconv -f utf-16 -t utf-8 test.log
test.log是utf-16的编码
cat test.log会报错
但是我们可以cat的时候指定编码格式
iconv -f 文件编码 -t 终端编码 input.log
iconv -f utf-16 -t utf-8 test.log
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。