Display webpage using the source code from a QByteArray
-
Normally, the encoding would be somewhere in the first part of the HTML header. You might need to search for that header, and re-parse the document based on what you find. You can not just assume that it is one encoding or the other. Normally, you'd find the encoding information (also) in the HTTP headers, but I gather that you don't have those?
-
You should try "QWebView::setContent() ":http://doc.qt.nokia.com/4.7/qwebview.html#setContent, it takes a QByteArray as argument.
-
[quote author="Volker" date="1304374840"]You should try "QWebView::setContent() ":http://doc.qt.nokia.com/4.7/qwebview.html#setContent, it taks a QByteArray as argument.[/quote]
Even better, of course :-)