News for hackers. Stuff that matters.
Re:UTF-8 good, UTF-16 bad by __david__ on Tuesday February 08, 2011 @05:14AM (#2192486)
As far as I know, wchar_t is meant to be an internal only representation, so it's good that it is 32 bits--that way you are in one codepoint per word territory. It's a mistake to think you can just overlay some unicode binary data with a wchar_t pointer--you need to convert into and out of wchat_t from utf8/utf-16/whatever. Otherwise you aren't handling codepoints above 16 bits correctly.
Re:UTF-8 good, UTF-16 bad by fauigerzigerk on Tuesday February 08, 2011 @08:40AM (#2192795)
Unfortunately the size of wchar_t is platform/compiler dependent.