将 .csv 文件从 UTF-16 更改为 UTF-8 会删除文件数据

将 .csv 文件从 UTF-16 更改为 UTF-8 会删除文件数据

我尝试使用 unix 命令将 .csv 文件的字符集从 UTF-16 更改为 UTF-8

iconv -f utf-16le -t UTF-8//TRANSLIT <input file> -o <output file>

运行word count命令之后,文件内容从原来的5600行减少到了466行。

相关内容