查看文件的编码(encoding)

Mac:

file -I FILEPATH

Linux:

file -i FILEPATH