maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Norbert Pabiƛ <>
Subject Re: [jira] Updated: (MAVEN-382) POM encoding problem
Date Thu, 25 Sep 2003 18:02:17 GMT
There is yet another possibility.
project.xml can be always in ISO-8859-1 then national characters can
be used in form &#xhhh; (hex) or &#nnn; (dec).
In this case internal encoding in MavenUtils.getProjectString must be 
set to

What is preferred solution?
Please comment. wrote:
> The following issue has been updated:
>     Updater: Norbert Pabis (
>        Date: Thu, 25 Sep 2003 9:25 AM
>     Comment:
> This patch resolves problems with charactes in POM that are not from ISO-8859-1.
> There are two issues:
> 1. In MavenUtils getProjectString was using always ISO-8859-1.
> That could not work with characters outside this charset.
> To have that fixed I needed original project.xml encoding. Unfortunately SAX which hides
behind bewixt and digester never share
> this information. So there are several possible workarounds:
> - to have a veriable <pomEncoding>
> - to have a property pom.encoding
> - to read encoding from several first bytes of projex.xml "by hand"
> - to decide that project.xml is always in UTF-8
> I chose the last option.
> 2. In xdoc plugin tag <parse> from jelly-tags-xml is used. This tag uses dom4j
which has a bug in SAXReader.parse(File).
> Maven depends on dom4j 1.2.8, last version is 1.4 and this bug is already fixed in CVS
but no newer version is available.
> Now I could do two things:
> - change Maven dependency to dom4j-snapshot (risky)
> - use <xml:parse xml="URL"> instead of <xml:parse xml="File">
> I chose the last option.
> In addtionn I included tests that ensure that with changing dependencies encoding issues
will not be broken.
> This patch will probably fix

> too.
>     Changes:
>              Attachment changed to encoding_problems_patch.gz
>     ---------------------------------------------------------------------
> For a full history of the issue, see:

Norbert Pabi?

Nobody expects the Debian Inquisition!
Our two weapons are fear and surprise... and ruthless efficiency!

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message