15

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

iconoclast
  • 3,260
  • 6
  • 35
  • 38
Casebash
  • 7,337
  • 19
  • 68
  • 86
  • 1
    There 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 Answers1

25

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

Casebash
  • 7,337
  • 19
  • 68
  • 86