title: How do I determine file encoding in OS X?
body: <p>I'm trying to enter some UTF-8 characters into a LaTeX file in <a href="http://en.wikipedia.org/wiki/TextMate" rel="noreferrer">TextMate</a> (which says its default encoding is UTF-8), but LaTeX doesn't seem to understand them.</p>
  
  <p>Running <code>cat my_file.tex</code> shows the characters properly in Terminal. Running <code>ls -al</code> shows something I've never seen before: an "@" by the file listing:</p>
  
  <pre><code>-rw-r--r--@  1 me      users      2021 Feb 11 18:05 my_file.tex
  </code></pre>
  
  <p>(And, yes, I'm using <code>\usepackage[utf8]{inputenc}</code> in the LaTeX.)</p>
  
  <p>I've found <code>iconv</code>, but that doesn't seem to be able to tell me what the encoding is -- it'll only convert once I figure it out.</p>