Skip to content

Commit

Permalink
return an utf8 string instead of latin1 in Document
Browse files Browse the repository at this point in the history
  • Loading branch information
bgola committed May 27, 2020
1 parent b0d0608 commit 77560e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editors/sc-ide/primitives/sc_ipc_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ int ScIDE_GetDocTextMirror(struct VMGlobals* g, int numArgsPushed) {

QString docText = gIpcClient->getTextMirrorForDocument(key, pos, range);

PyrString* pyrString = newPyrString(g->gc, docText.toLatin1().constData(), 0, true);
PyrString* pyrString = newPyrString(g->gc, docText.toUtf8().constData(), 0, true);
SetObject(returnSlot, pyrString);

return errNone;
Expand Down

0 comments on commit 77560e2

Please sign in to comment.