How do I determine file encoding in OS X?

后端 未结 15 1001
死守一世寂寞
死守一世寂寞 2020-11-29 15:12

I\'m trying to enter some UTF-8 characters into a LaTeX file in TextMate (which says its default encoding is UTF-8), but LaTeX doesn\'t seem to understand them.

Runn

15条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-29 15:34

    Using the -I (that's a capital i) option on the file command seems to show the file encoding.

    file -I {filename}
    

提交回复
热议问题