wxString <--> JavaScript Strings in Unicode
Milan Babuskov
milanb at panonnet.net
Sat Oct 28 04:59:21 PDT 2006
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 don't need this on Windows, because windows also uses 2-bytes for
> wchar_t.
It's because Windows API uses UTF-16 for everything.
--
Milan Babuskov
http://njam.sourceforge.net
http://www.flamerobin.org
More information about the wx-users
mailing list