Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-5451

QTextCodec::codecForHtml() fails to detect charset if content attribute appears before http-equiv attribute

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.1.0
    • 4.5.2, 4.8.x, 5.0.2
    • None
    • 86115848b55faa747adf8bb39a213b3cec7673c4

    Description

      t4id: 261526

      QTextCodec::codecForHtml() assumes that the content attribute appears after the http-equiv attribute, and therefore fails to detect the charset specified for the HTML if this is not the case.

      Example HTML that codecForHtml() fails on:

      <html><head><meta content=\"text/html; charset=ISO-8859-15\" http-equiv=\"content-type\" /></head></html>

      Autotest added: 90f0facddb799640ef9e123a3fc222e6a758c7be

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            mitch_curtis Mitch Curtis
            jasmcdon Jason McDonald (Closed Nokia Identity. Please assign to "macadder" instead) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes