XMLReporter writes incorrect encoding in XML-file
-------------------------------------------------

         Key: SUREFIRE-24
         URL: http://jira.codehaus.org/browse/SUREFIRE-24
     Project: surefire
        Type: Bug

    Versions: 1.5    
 Environment: Windows XP, Danish locale, Cp1252 encoding
    Reporter: Simon Kepp Nielsen
 Assigned to: Jason van Zyl 
 Attachments: XMLReporter.patch

XMLReporter.java writes the outputted xml-file in the platform default 
encoding, but writes an encoding of UTF-8 in the XML header.

On my machine, with a platform default encoding of Cp1252, this causes the 
surefire report plugin to fail with a "org.xml.sax.SAXParseException: Invalid 
byte 2 of 3-byte UTF-8 sequence".

The attached patch ensures, that the outputted XML-file is always written in 
UTF-8 encoding, so that it matches the header in the file.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to