[webkit-qt] Load the file with the file Encoding of the URL

Jocelyn Turcotte jocelyn.turcotte at nokia.com
Wed Apr 6 03:39:02 PDT 2011


On Wed, 6 Apr 2011 10:33:08 +0000
"ext manas.mohanty at nokia.com" <manas.mohanty at nokia.com> wrote:

> We are using the load method below to load a web-page. Is there any
> way I can pass the file encoding(UTF-8 or ISO-8859-1) format along
> with the file Url ?
> 
> void load(const QUrl &url);
> 
If you load it from a file, try to use the <meta> tag.
If you load it from a server, the Content-type header should specify
the encoding.

See http://en.wikipedia.org/wiki/Character_encodings_in_HTML

Jocelyn


More information about the webkit-qt mailing list