Characters, now half off!

by Michael S. Kaplan, published on 2007/04/27 23:36 -04:00, original URI:

Vivek's question over in the newsgroup really confused me:

What is the sizeof wchar_t / WCHAR on WIN64 platforms? Is it 4 bytes and
UTF32 or same as WIN32 -- 2 bytes and UTF16?

I wasn't confused due to not knowing the answer, which is the latter (as David Lowndes pointed out).

My confusion was why the person asking was expecting that while the 32-bit platform support UTF-16 that the 64-bit platform would support UTF-32.

Maybe the thought was that it would be some kind of special on the characters Windows supports -- 50% off? :-)


This post brought to you by(U+0d87, a.k.a. SINHALA LETTER AEYANNA)

no comments

Please consider a donation to keep this archive running, maintained and free of advertising.
Donate €20 or more to receive an offline copy of the whole archive including all images.

go to newer or older post, or back to index or month or day