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

Issue with QUrl percent encoding in TolerantMode

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • None
    • 4.7.0
    • Core: URL Handling
    • None

    Description

      According to the docs, in TolerantMode: "Any occurrences of a percent character "%" not followed by exactly two hexadecimal characters (e.g., "13% coverage.html") will be replaced by "%25". However, in practice it looks like % is always replaced:

      QUrl(QString("http://qt.nokia.com?1 %26 2")).toEncoded();
      

      Expected:
      "http://qt.nokia.com?1%20%26%202"

      Actual:
      "http://qt.nokia.com?1%20%2526%202"

      This is causing problems in XmlListModel, see http://lists.trolltech.com/pipermail/qt-qml/2010-October/001368.html for the discussion.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            brasser Michael Brasser (closed Nokia identity) (Inactive)
            Votes:
            7 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes