Reputation: 1238
Do all popular iconv implementations support conversion from UTF-16BE (i.e. UTF-16 with big-endian byte order)? GNU iconv supports this encoding, but what about the other implementations in common use? Specifically, what do mingw and the *BSDs support?
Should I rather do this conversion myself?
Upvotes: 3
Views: 540
Reputation: 213328
If it's a big deal for you, you have an easy way out. Just write an autoconf test for UTF-16BE support, and then make the configuration script fail with an error message if it's not present.
Then you can take your time to sift through the standards, or, just forget about the whole issue.
Since libiconv is LGPL and supports UTF-16BE (website), you can always point users to that. There are some projects that include libiconv rather than rely on platform implementations.
Upvotes: 1