The following command could show you the character encoding set of a specific file.
file -I <filename>
<filename>: text/plain; charset=us-ascii
Please note that the paraemeter -I is the capital letter of i but NOT smaller letter of L.
Reference: StackOverflow – How do I determine file encoding in OSX?
2 thoughts on “Mac – Check File Encoding”