You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is mostly duplicated with #144 but because of no rights to reopen I decided to post a new one to warn other users using non-latin codepages with JavaScriptCore datamodel
After conversion we have std::string Var14 ="''В чащах юга жил бы цитрус? Да, но фальшивый экземпляр!''"
It is ANSI 1251 string because method transcodetranscodes a string to native code-page
And we are getting hard exception here because we have different size.
JSString expect UTF8 string which must be std::string Var14="'В чащах юга жил бы цитрус? Да, но фальшивый экземпляр!'
Possible Solutions
Change everything to unicode std::wstring
Modify X(const XMLCh* const toTranscode) to force convert to UTF8 string
Convert from native code-page in datamodels
The text was updated successfully, but these errors were encountered:
This issue is mostly duplicated with #144 but because of no rights to reopen I decided to post a new one to warn other users using non-latin codepages with JavaScriptCore datamodel
Steps to reproduce:
Conditions:
Windows any version, codepage 1251
Actions:
Results:
char* tmp = XERCESC_NS::XMLString::transcode(toTranscode); _localForm = std::string(tmp);
After conversion we have
std::string Var14 ="''В чащах юга жил бы цитрус? Да, но фальшивый экземпляр!''"
It is ANSI 1251 string because method transcode transcodes a string to native code-page
Later we perform
And we are getting hard exception here because we have different size.
JSString expect UTF8 string which must be
std::string Var14="'В чащах юга жил бы цитрус? Да, но фальшивый экземпляр!'
Possible Solutions
X(const XMLCh* const toTranscode)
to force convert to UTF8 stringThe text was updated successfully, but these errors were encountered: