Quantcast
Channel: Jobs
Viewing all articles
Browse latest Browse all 18427

[Qt 5.0.1 Multi Platform] How can I convert QNetworkReply::readAll() to UTF-8?

$
0
0
Hello, everyone, the title says it all: I get an HTML-source from a german website by QNetworkReply::readAll(), which is first captured into a QByteArray. Then this is converted to a QString, and then this is parsed. The application was first developed under Qt 4.8.1 where everything worked fine; but after porting it to 5.0.1 the german characters are shown wrong. Is there any option while receiving the stream to get the chars well coded? Or can I convert the QByteArray to UTF-8 anyhow? Thanks in advance for every hint. Greetings Joerg

Viewing all articles
Browse latest Browse all 18427

Trending Articles