wxString <--> JavaScript Strings in Unicode
Franky Braem
f.braem at skynet.be
Fri Oct 27 13:27:53 PDT 2006
I've got a problem when trying to run wxJS on Ubuntu:
SpiderMonkey (the JavaScript engine) uses 2-bytes (jschar) to represent
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) to a
jschar?
I don't need this on Windows, because windows also uses 2-bytes for wchar_t.
I know you can build an application with -fshort-wchar but this option
can break compatibility between other applications.
Franky.
More information about the wx-users
mailing list