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
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:
After conversion we have
std::string Var14 ="''В чащах юга жил бы цитрус? Да, но фальшивый экземпляр!''"
It is ANSI 1251 string because method transcode transcodes a string to native code-pageLater 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 string