summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAriya Hidayat <ariya.hidayat@nokia.com>2009-07-25 22:32:21 +0200
committerAriya Hidayat <ariya.hidayat@nokia.com>2009-07-25 22:32:21 +0200
commit152d1e714f78738135c1e72248c0b0c30eb2bfbc (patch)
tree043536e175c30163a841954762131cc0ec931639
parentd7d99f7127dca586dafe954494a971790cf08c68 (diff)
Google returns UTF-8 encoded HTML.
-rw-r--r--weatherinfo/weatherinfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/weatherinfo/weatherinfo.cpp b/weatherinfo/weatherinfo.cpp
index b3a36fb..aedb668 100644
--- a/weatherinfo/weatherinfo.cpp
+++ b/weatherinfo/weatherinfo.cpp
@@ -102,7 +102,7 @@ private slots:
void handleNetworkData(QNetworkReply *networkReply) {
QUrl url = networkReply->url();
if (!networkReply->error())
- digest(networkReply->readAll());
+ digest(QString::fromUtf8(networkReply->readAll()));
networkReply->deleteLater();
networkReply->manager()->deleteLater();
}