recode
converts text from one character encoding to another. Unlike iconv
, it is able to do that inplace (on the original file). my-file.txt
from UTF-8 to Latin-1 (ISO-8859-1). recode utf8..ISO-8859-1 my-file.txt
file
can be used to determine the encoding of files.