From 2105d3c7d00adef2ddce679a43a7a77f95168c7a Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Fri, 2 Mar 2018 20:29:50 +0100 Subject: Cleanup: consistently use toUtf8() instead of toLocal8Bit() These do the same, since the text-codex is set to UTF-8 on startup. Signed-off-by: Berthold Stoeger --- core/gpslocation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/gpslocation.cpp') diff --git a/core/gpslocation.cpp b/core/gpslocation.cpp index 95b2bebbc..affe62c3b 100644 --- a/core/gpslocation.cpp +++ b/core/gpslocation.cpp @@ -592,7 +592,7 @@ void GpsLocation::downloadFromServer() timer.stop(); if (!reply->error()) { QString response = reply->readAll(); - QJsonDocument json = QJsonDocument::fromJson(response.toLocal8Bit()); + QJsonDocument json = QJsonDocument::fromJson(response.toUtf8()); QJsonObject object = json.object(); if (object.value("download").toString() != "ok") { qDebug() << "problems downloading GPS fixes"; -- cgit v1.2.3-70-g09d2