[Webkit-unassigned] [Bug 65186] New: [Qt] QWebPage does not change displayed encoding of newly loaded pages after settings()->setDefaultEncoding("some_encoding")

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 26 08:02:28 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=65186

           Summary: [Qt] QWebPage does not change displayed encoding of
                    newly loaded pages after
                    settings()->setDefaultEncoding("some_encoding")
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P3
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: blinov.vyacheslav at gmail.com


QtWebKit`s autodetection of encoding works good, but there are some sites on the internet witch has bad encoding, like a page with text in two different encodings or wrong page`s encoding header. So I wanted a feature for user to be able to change encoding of page manually. The only function I found by docs was QWebSettings::setDefaultEncoding. I tryed to use that, but it looks like QWebView and QWebPage are still using autodetection. However, implementing custom download mechanism and using QWebPage::setHtml() of raw data with fixes in head`s mime or changing file`s encoding does the trick.

I think there should be some kind of function to set encoding, user want to use, it is very usefull with some bad sites and in web development process. Chromium browser (witch uses WebKit too iirc) has such a feature.

Enviroment I used:
Kubuntu 11.04
Qt 4.7.2
QtWebKit 2.0.2
WebKit 533.3

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list