How can I determine the character encoding of plain text files (such as HTML) on Mac OS X?
Asked
Active
Viewed 3.2k times
15
-
1There is a similar thread on Stack Overflow: http://stackoverflow.com/questions/539294/how-do-i-determine-file-encoding-in-osx – ayaz Jun 13 '10 at 08:07
-
possible duplicate of [Converting the encoding of a text file (Mac OS X)](http://superuser.com/questions/151981/converting-the-encoding-of-a-text-file-mac-os-x) – Sathyajith Bhat Jun 13 '10 at 09:19
1 Answers
25
file -I {filename} worked from the link Ayaz provided. Apparently though, there is no definite way to determine the encoding.