Maven 1

Umlauts in project.xml become garbage in generated site

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Won't Fix
  • Affects Version/s: 1.0-beta-10
  • Fix Version/s: 1.0-rc1
  • Component/s: core
  • Labels:
    None
  • Environment:
    RedHat 9, LANG=en_US.UTF-8, JDK 1.4.2
  • Number of attachments :
    3

Description

Taking the project.xml from "maven genapp" as a starting point, I tried to introduce myself as the project owner:

<!-- details about the organization that 'owns' the project -->
<organization>

which generates "Lars K??hne" in the copyright footer. In my view this shouldn't happen, as the xml file encoding is ISO-8859-1, where ? is a character just like a, b, c, etc.

As a workaround I tried to use

<name><![CDATA[Lars Kühne]]

  1. index.html
    23/Sep/03 2:32 PM
    7 kB
    Lars Kühne
  2. project.xml
    25/Sep/03 12:12 AM
    3 kB
    Lars Kühne
  3. project.xml.patch
    23/Sep/03 2:28 PM
    0.4 kB
    Lars Kühne

Issue Links

Activity

Hide
Lars Kühne added a comment -

Arrgh - Jira doesn't get it right either...

Here is a patch file with my original changes to project.xml

Show
Lars Kühne added a comment - Arrgh - Jira doesn't get it right either... Here is a patch file with my original changes to project.xml
Hide
Lars Kühne added a comment -

...and the index.html file that is generated (look at the page footer)

Show
Lars Kühne added a comment - ...and the index.html file that is generated (look at the page footer)
Hide
dion gillard added a comment -

Is this still an issue?

In CVS HEAD, the simian plugin has one an non UTF char in it.

Can you supply a sample project.xml?

Show
dion gillard added a comment - Is this still an issue? In CVS HEAD, the simian plugin has one an non UTF char in it. Can you supply a sample project.xml?
Hide
Lars Kühne added a comment -

Added the full project.xml as requested.

Where can I download the nightly build to see if the problem has been fixed in CVS?

Show
Lars Kühne added a comment - Added the full project.xml as requested. Where can I download the nightly build to see if the problem has been fixed in CVS?
Hide
dion gillard added a comment -

When I download the file, the name has

<name>Lars K??hne</name>

in it.

Got a better one? Or is there some mangling going on?

Send it to me via dion@apache.org if you like.

Show
dion gillard added a comment - When I download the file, the name has <name>Lars K??hne</name> in it. Got a better one? Or is there some mangling going on? Send it to me via dion@apache.org if you like.
Hide
Lars Kühne added a comment -

Yes, there was some mangling going on. It is probably not such a good idea to have UTF-8 as your system encoding (default in RH9) and then declaring the encoding to be latin1 in your xml file.

I changed my system encoding to ISO-8859-1, retyped the umlaut in the project.xml file and rebuilt the site. Now everything is fine, you can close this issue as "Invalid".

Lesson learnt: With problems like this open the file in a hex editor and check the real file content.

Thanks for your help and sorry for the noise.

Show
Lars Kühne added a comment - Yes, there was some mangling going on. It is probably not such a good idea to have UTF-8 as your system encoding (default in RH9) and then declaring the encoding to be latin1 in your xml file. I changed my system encoding to ISO-8859-1, retyped the umlaut in the project.xml file and rebuilt the site. Now everything is fine, you can close this issue as "Invalid". Lesson learnt: With problems like this open the file in a hex editor and check the real file content. Thanks for your help and sorry for the noise.
Hide
dion gillard added a comment -

Bad system encoding

Show
dion gillard added a comment - Bad system encoding
Hide
Lukas Theussl added a comment -

Problem gets fixed by changing system encoding, eg on FC3: export LANG=en_US.UTF-8
We'll document that in a FAQ.

Show
Lukas Theussl added a comment - Problem gets fixed by changing system encoding, eg on FC3: export LANG=en_US.UTF-8 We'll document that in a FAQ.

People

Vote (2)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: