Bug 51801 - QWebView - eats xml header
Summary: QWebView - eats xml header
Status: RESOLVED DUPLICATE of bug 25206
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Qt (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows 7
: P2 Normal
Assignee: Nobody
Depends on:
Reported: 2011-01-02 03:23 PST by szyk
Modified: 2011-01-02 12:42 PST (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description szyk 2011-01-02 03:23:04 PST
I have xhtml document like this:
QString gHtmlDefHeader = QString::fromUtf8("<?xml version=\"1.0\" encoding=\"utf-8\"?>"
   "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">"
   "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"pl\">"
QString gHtmlDefFooter = QString::fromUtf8("</body></html>");

I write it to QWebView with command:
ui->mOutput->setHtml(gHtmlDefHeader + stylesForOutputList() + gHtmlDefFooter);

And I read it with command:

And suprisingly result does not have:
"<?xml version=\"1.0\" encoding=\"utf-8\"?>"

So my direct page dumps are broken due to lack info about encoding!!!
Comment 1 Alexey Proskuryakov 2011-01-02 12:42:50 PST
This is not a QWebView bug.

*** This bug has been marked as a duplicate of bug 25206 ***