Determining the encoding of a file on Mac OS X?

13

8

How can determine the character encoding of plain text files (such as html) on Mac OS X?

Casebash

Posted 2010-06-13T07:59:41.623

Reputation: 5 677

1

There is a similar thread on Stack Overflow: http://stackoverflow.com/questions/539294/how-do-i-determine-file-encoding-in-osx

– ayaz – 2010-06-13T08:07:50.747

possible duplicate of Converting the encoding of a text file (Mac OS X)

– Sathyajith Bhat – 2010-06-13T09:19:09.080

Answers

21

file -I {filename} worked from the link Ayaz provided. Apparently though, there is no definite way to determine the encoding.

Casebash

Posted 2010-06-13T07:59:41.623

Reputation: 5 677