I use the iconv library for an interface from a modern input source that uses UTF-8 for an older system that uses Latin1 as well as CP1252 (a superset of ISO-8859-1).
The interface has recently failed to convert the French line "Education", where "É" was encoded as hex 45 CC 81 . Note that the destination encoding has the character “É” encoded as C9 .
Why iconv failed to convert "É"? I checked that the iconv command-line tool, available with MacOS X 10.7.3, says that it cannot convert and that the PERL iconv module also fails.
This is even more alarming because the pre-selected form of the character "É" (encoded as C3 89 ) is converted just fine.
Is this a bug with iconv or am I missing something?
Please note that I also have the same problem if I try to convert from UTF-16 (where “É” is encoded as 00 C9 composed or 00 45 03 01 decomposed).
unicode iconv
Jean-denis muys
source share