How do I determine file encoding in OS X?

Using the -I (that’s a capital i) option on the file command seems to show the file encoding.

file -I {filename}

Leave a Comment