Linux – Check File Encoding

The file command also works in Linux. But unlike Mac, u don’t need to have the -I parameter.

file <filename>

 

Possible output:

<filename>: Unicode text, UTF-8

 

Done =)

Reference:

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.