C++ encoding macro -


Is there a macro that tells you that encoding C ++ is using for your wchar_t type? I'm currently stuck to GNU and quarrel. I'm assuming UTF 32 because my wchar_t size is 4 bytes. Although it can be UTF-16, it also uses 4 bytes for some code-points.

But still there is a problem with UCS-4 or UTF-32L or UTF-32BE.

Any help / expertise on this topic?

wchar_t implementation is specific. It is not specific encoding if you are on a platform where wchar_t is 16 bit , So it does not support UTF 32 for instance.

Encoding (UTF8, UTF32) and storage (wchar_t) are different things.


Comments

Popular posts from this blog

php - multilevel menu with multilevel array -

.net - C# List<T>.Find(x=>x.Rectangle.Contains(Point)) FAIL -

objective c - iPhone and it's wireless area -