c++ - Size of wchar_t for unicode encoding -


Is 32-bit Extended Character for UTF-32 String Encoding? I want to do this via std :: wstring , which is showing me the size of an extended character which is 16 bit on the Windows platform.

You will not be able to do it on multiple platforms with std :: wstring Because there will be 16 bit elements in it.

Instead you need to go to std :: basic_string & lt; Char32_t & gt; , but this requires a compiler with some C + 0x support.

Comments