Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
There is a similar thread on Stack Overflow:… – ayaz Jun 13 '10 at 8:07
possible duplicate of Converting the encoding of a text file (Mac OS X) – Sathya Jun 13 '10 at 9:19
up vote 17 down vote accepted

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.