wxString <--> JavaScript Strings in Unicode
Franky Braem
f.braem at skynet.be
Mon Oct 30 12:12:28 PST 2006
Milan Babuskov wrote:
> Franky Braem wrote:
>> SpiderMonkey (the JavaScript engine) uses 2-bytes (jschar) to represent
>
> jschar is UTF-16
>
>> a unicode string. wxWidgets uses wchar_t which uses 4-bytes on Linux.
>> Is there a way to make a conversion from a wxString (encoded in UTF16)
>
> UTF-16 is not 4-bytes. 16 stands for 16 bits, i.e. 2 bytes.
>
I know. But wxString uses wchar_t, which is 4 bytes on Linux, and 2
bytes on Windows.
More information about the wx-users
mailing list