How to Determine File Encoding in Mac OS by Command Line
You can determine a files encoding and character set through the command line in Mac OS (and linux) by using the “file” command, which helps to retrieve general and specific information about a file type.

