How do I determine file encoding in OS X?

后端 未结 15 991
死守一世寂寞
死守一世寂寞 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:32

    You can also convert from one file type to another using the following command :

    iconv -f original_charset -t new_charset originalfile > newfile
    

    e.g.

    iconv -f utf-16le -t utf-8 file1.txt > file2.txt
    

提交回复
热议问题