When I download a web page with QHttp the page downloaded is not in utf8. How can I convert the page in utf8?
This is my code:
htmlFile
= new QFile("downl.html");
QUrl url
( "http://images.google.it/images" );
http->setHost(url.host(),url.port() != -1 ? url.port() : 80);
http->get(url.path() +"?q=test&gbv=2&hl=it&sa=G&imgsz=small|medium|large|xlarge", htmlFile);
htmlFile = new QFile("downl.html");
htmlFile->open(QIODevice::WriteOnly | QIODevice::Text);
QUrl url( "http://images.google.it/images" );
http = new QHttp;
http->setHost(url.host(),url.port() != -1 ? url.port() : 80);
http->get(url.path() +"?q=test&gbv=2&hl=it&sa=G&imgsz=small|medium|large|xlarge", htmlFile);
To copy to clipboard, switch view to plain text mode
Bookmarks