On 2010-07-30 6:14 PM Neil Mayhew wrote:
Different iconv implementations actually differ on this. On Mac OS X on Intel with either the system iconv and the MacPorts version of GNU libiconv, UCS-2 actually means big-endian.
I just built libiconv on Linux, and even there it treats UCS-2 as big endian even on a little-endian machine.
It may be right, too. I just found this on the Unicode Consortium web site:
Q: What does Unicode conformance require?A: Chapter 3, Conformance discusses this in detail. Here's a very informal version:... If you don't know, assume big-endian.
<http://www.unicode.org/faq/basic_q.html#11> --Neil