Fix decoding of non-ASCII characters
This commit is contained in:
parent
9e6aadffa1
commit
c31e7262b2
1 changed files with 3 additions and 1 deletions
|
|
@ -343,7 +343,9 @@ NvHTTP::openConnectionToString(QUrl baseUrl,
|
|||
QNetworkReply* reply = openConnection(baseUrl, command, arguments, enableTimeout);
|
||||
QString ret;
|
||||
|
||||
ret = QTextStream(reply).readAll();
|
||||
QTextStream stream(reply);
|
||||
stream.setCodec("UTF-8");
|
||||
ret = stream.readAll();
|
||||
delete reply;
|
||||
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue