Or if you have utf8 characters in a file for example, you can construct
UniString with this constructor: char* utf8Chars; GS::UniString uStr
(utf8Chars, CC_UTF8);
I did not compile this code, but I think something like this:
std::wstring wStr = L("中文测试");GS::UniString uStr (wStr.c_str()); The L()
macro forces those characters to compile as utf16.
Hi,Of course UniString supports chinese and other languages also. I
think that the problem here is the conversion between utf16 and char
types. I suggest using std::wstring instead of std::string in the code.
UniString can be constructed from utf16 c...
You can add a html file as a resource by adding it as a DATA resource.
For example: 'DATA' 2024 "HTML Resource" { "BrowserContent.html" } The
resource can be loaded like this (I did not compile it): GS::UniString
htmlStr; GSHandle resHandle = RSLoadR...