diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2020-09-08 02:23:18 +0200 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2020-09-08 19:58:25 +0200 |
commit | e591c3147e3c504611ff612e8918018125ffa2eb (patch) | |
tree | d4004f33ddc2c7f9f70d95d0244b93ac27b9eb76 /gui/handlers.cpp | |
parent | c2871f4aece61b939e0e6c8d7a94677fb055620a (diff) |
[bug] pass json as bytes to go side
Diffstat (limited to 'gui/handlers.cpp')
-rw-r--r-- | gui/handlers.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gui/handlers.cpp b/gui/handlers.cpp index 71e5d38..4910aa2 100644 --- a/gui/handlers.cpp +++ b/gui/handlers.cpp @@ -8,7 +8,9 @@ GoString toGoStr(QString s) { - char *c = s.toLocal8Bit().data(); + // TODO verify that it's more correct + // char *c = s.toLocal8Bit().data(); + const char *c = s.toUtf8().constData(); return (GoString){c, (long int)strlen(c)}; } |