Converting text into ASCII/ISO-8859-1

character encodingcommand lineconversion

I'm looking for some tool that can convert text, ideally from UTF-8 (but ISO-8859-2 and WINDOWS-1250 would be fine) into ASCII/ISO-8859-1?

I have seen some online transliteration tools but I need something for the command line (and iconv is refusing to convert the file).

Best Answer

By default, iconv refuses to convert the file if it contains characters that do not exist in the target character set. Use //TRANSLIT to “downgrade” such characters.

iconv -f utf-8 -t iso8859-1//TRANSLIT
Related Question