Skip to content

Instantly share code, notes, and snippets.

@iguoli
Last active December 3, 2017 14:08
Show Gist options
  • Save iguoli/f7531d7da9f02291998fb72ad7236811 to your computer and use it in GitHub Desktop.
Save iguoli/f7531d7da9f02291998fb72ad7236811 to your computer and use it in GitHub Desktop.
Linux下判断文件的编码,Linux, file, encoding

Linux下判断文件的编码

  1. 使用enca命令可以直接查看文件的字符编码
  2. 使用file -i命令也可以查看文件的字符编码,它会输出MIME-type格式的信息
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment