Is the a tool (mac or online) that can help me to find out the character set of a text file, and then convert it to utf-8 ?
Asked
Active
Viewed 3.0k times
2 Answers
8
- for linux, use
file -i filename - for mac, use
file -I filename
For instance,
$ file -i readme.txt
readme.txt: text/plain; charset=iso-8859-1
BTW, for converting, use iconv, for instance,
iconv -f ISO-8859-1 -t UTF-8 filename
SparkAndShine
- 197