From 748eb949a7b35e8da8b029cb65e46ef973f598c3 Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Tue, 1 Aug 2017 19:42:42 +0300 Subject: [PATCH] Parse utf-8 data properly --- src/Cache.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cache.cc b/src/Cache.cc index c9f3fa5f..0a6ab3fc 100644 --- a/src/Cache.cc +++ b/src/Cache.cc @@ -225,5 +225,5 @@ QString Cache::nextBatchToken() txn.commit(); - return QString::fromUtf8(token.data()); + return QString::fromUtf8(token.data(), token.size()); }