Page 1 of 1

sizeof(wxChar) == 2 and Unicode

Posted: Thu Mar 16, 2006 6:20 pm
by Stefan
Hello, i have an unicode related question.
Is the wxString class aware of of the fact that unicode requires more than 2 bytes? I do not think so, so why does the docu say, wxString can be used for unicode?

Codepoints since 2001 do need at least 3 bytes (ok 4;) ).

What do you think, have i overlooked something?

Posted: Thu Mar 16, 2006 7:21 pm
by eco
The bytes needed depends on the encoding. Not all encodings support all codepoints. I'm unsure what encoding wxString uses internally.

Posted: Fri Mar 17, 2006 6:03 am
by Stefan
Yes, but the continuous 16 Bit isn't enough. And i fear wxString just uses this for Windows. So it must at least be UTF16 but i do not think that