Comment 2 for bug 7427

Revision history for this message
Enrico Zini (enrico) wrote :

(In reply to comment #1)
> $ echo 'Frédéric' | iconv -f UTF-8 -t ASCII
> Friconv: illegal input sequence at position 2
> $ echo 'Frédéric' | iconv -c -f UTF-8 -t ASCII
> Frdric
> The Perl Text::Iconv module's convert() method just returns undef.
> If you know how to persuade any of these tools to do the right thing, I'd be
> interested to hear it.

You are feeding latin1 sequences pretending they are UTF-8: use -f latin1 instead.

Ciao,

Enrico