cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yan, Charlene" <Charlene....@thomsonlearning.com>
Subject FW: jfor encoding problem
Date Tue, 03 Jun 2003 15:07:59 GMT
Bertrand,

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.

Thanks!

Charlene

-----Original Message-----
From: Bertrand Delacretaz [mailto:bdelacretaz@codeconsult.ch]
Sent: Tuesday, June 03, 2003 1:41 AM
To: cocoon-users@xml.apache.org
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 (codeconsult.ch, jfor.org)
   XML, java, XSLT, Cocoon, FOP, mentoring/programming/teaching
   blogspace http://www.codeconsult.ch/bertrand


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Mime
View raw message