[
http://jira.codehaus.org/browse/MNG-2254?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_100267
]
Herve Boutemy commented on MNG-2254:
------------------------------------
for problems about encodings, there are ways to write a Reader that
automagically detects the encoding of a XML stream:
see https://rome.dev.java.net/apidocs/0_5/com/sun/syndication/io/XmlReader.html
this permits to use a reader as a source for an XML parser without loosing any
information: the magic is done by the reader, not by the parser.
Such a solution would be an easy fix: the actual MavenXpp3Reader signature
could be sufficient (even if using an InputStream would be more classical)
> the encoding parameter in xml declaration of POM is ignored
> ------------------------------------------------------------
>
> Key: MNG-2254
> URL: http://jira.codehaus.org/browse/MNG-2254
> Project: Maven 2
> Issue Type: Bug
> Components: POM::Encoding
> Reporter: Naoki Nose
> Assignee: Jason van Zyl
> Fix For: 2.1.x
>
> Attachments: DefaultMavenProjectBuilder.diff, modello-plugin-xpp3.diff
>
>
> DefaultMavenProjectBuilder reads POM in system default character encoding,
> and the encoding parameter in xml declartion is ignored.
> to fix this problem, We should
> - fix modello-plugin-xpp3 to use the xml parser which is able to handle the
> encoding parameter properly
> - regenerate maven-model using fixed modello-plugin-xpp3
> - fix DefaultMavenProjectBuilder to use regenerated maven-model properly.
--
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