While trying to convert a text file into its ASCII equivalent, I get error message that iconv: illegal input sequence at position
.
Command I use is iconv -f UTF-8 -t ascii//TRANSLIT file
The offending character is æ
.
Text file itself is present here.
Why does it say illegal sequence? The input character is proper UTF-8 character (U+00E6).
Best Answer
The file is encoded in ISO-8859-1, not in UTF-8:
And the byte "e6" alone is not a valid UTF-8 sequence.
So, use
iconv -f latin1 -t ascii//TRANSLIT file
.