You are viewing a plain text version of this content. The canonical link for it is here.
Posted to surefire-dev@maven.apache.org by "Carlos Sanchez (JIRA)" <ji...@codehaus.org> on 2006/01/01 23:01:12 UTC

[jira] Closed: (SUREFIRE-24) XMLReporter writes incorrect encoding in XML-file

     [ http://jira.codehaus.org/browse/SUREFIRE-24?page=all ]
     
Carlos Sanchez closed SUREFIRE-24:
----------------------------------

      Assign To: Carlos Sanchez  (was: Jason van Zyl)
     Resolution: Fixed
    Fix Version: 1.5.2

> 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
>     Assignee: Carlos Sanchez
>      Fix For: 1.5.2
>  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