Linux探测文本文件的编码方式

        使用file命令就可以了。
[~]$ file test.txt
test.txt: UTF-8 Unicode text, with no line terminators

你可能感兴趣的:(linux,File)