Why can iconv convert precomposed form but not decomposed form of “É” (from UTF-8 to CP1252)
- 阅读更多 关于 Why can iconv convert precomposed form but not decomposed form of “É” (from UTF-8 to CP1252)
问题 I use the iconv library to interface from a modern input source that uses UTF-8 to a legacy system that uses Latin1, aka CP1252 (superset of ISO-8859-1). The interface recently failed to convert the French string "Éducation", where the "É" was encoded as hex 45 CC 81 . Note that the destination encoding does have an "É" character, encoded as C9 . Why does iconv fail converting that "É"? I checked that the iconv command-line tool that's available with MacOS X 10.7.3 says it cannot convert, and