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

Invalid encoding with umlauts and -xml -o

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.3.0
    • 5.2.0
    • Testing: qtestlib
    • None
    • Windows 7, msvc2010_opengl
    • afe3902a30030280b48bfeed403db5edf56336a1 (dev, 21.1.2014, 5.3)

    Description

      I try to run a test with "-xml -o result.xml" on Windows.
      This test outputs a message with qDebug(), which contains umlaut characters.
      The resulting xml file says 'encoding="UTF-8"', but the message is encoded in Latin1.

      This violates the XML specification (http://www.w3.org/TR/REC-xml/#sec-cdata-sect) and causes the parser which should process this file to throw an exception:
      com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 2 of 2-byte UTF-8 sequence.

      On Linux, everything works fine.

      Attachments

        1. qtbug35743.zip
          4 kB
        2. result.xml
          0.6 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kleint Friedemann Kleint
            cbuehler Christian Bühler
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes