cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yan, Charlene" <>
Subject RE: jfor encoding problem
Date Tue, 03 Jun 2003 14:59:44 GMT

Thank you very much for your reply.  First of all, I'm using Cocoon-2.1m2 and jdk1.3.1.  I
am using the xercesImpl-2.4.1.jar (875KB), xalan-20030506.jar(2571KB), and xml-apis.jar(122kb)
in tomcat4.0.5's common/lib dir.  You can easily reproduce it by using the Orderpage example
at http://localhost:8080/cocoon/samples/stream/order.  If you add <?xml version="1.0" encoding="ISO-8859-1"?>
at the top of the default xml and change Order Id to be Gérer, the next html page will display
<OrderID>Gérer </OrderID> as Order Id.  It is doing the same thing to rtf report.

Is it a parser problem?  The same xml is parsed correctly in my struts application using different
xml jars.  I'm going to switch to using those jars to try if it will work.



-----Original Message-----
From: Bertrand Delacretaz []
Sent: Tuesday, June 03, 2003 1:41 AM
Cc: Yan, Charlene
Subject: Re: jfor encoding problem

Le Lundi, 2 juin 2003, à 21:51 Europe/Zurich, Yan, Charlene a écrit :

> ...
> I'm trying to display accented characters correctly using jfor.  
> However, when I try to run 
> http://localhost:8080/cocoon/samples/jfor/minimal.rtf, it gives the 
> following exception.  I have put some French words such as "Gére" in 
> the xml file...

Is the encoding declaration correct in your input XML?
Can you parse it with another tool (XML editor or parser)?

If you can reduce your input to the smallest XML file that causes the 
problem, you could post it here so that someone can test it.

Hope this helps,
   Bertrand Delacretaz (,
   XML, java, XSLT, Cocoon, FOP, mentoring/programming/teaching

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

View raw message