cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lionel Crine <>
Subject Re: Change encoding to ISO-8859-1
Date Fri, 05 Mar 2004 17:46:44 GMT
This error means that the document is written in ASCII mode with some 
characters which are not contain in the ASCII table of UTF-8.

Which means :
if you write "éééé" in a new document with ultraedit and you save it as is.
Cocoon will load the document and serialize it with this error.

Before saving the document, you convert the document from ASCII to UTF-8 
using File -> Conversions -> ASCII to UTF-8
In java for example,you can do the similar thing like that :  new 
String(str.getBytes("ISO-8859-1"), "UTF-8");

And now it's working.
So no need to change the encoding of the serializer.


At 20:34 23/02/2004 +0000, you wrote:
>I know this is a issue largely discussed here, but for me the tips that I 
>read didn't work.
>I already try to set the current encoding in the sitemap, like you can see 
>    <map:serializer logger="sitemap.serializer.html" name="html" 
> mime-type="text/html"
>        pool-grow="4" pool-max="32" pool-min="4"
>        src="org.apache.cocoon.serialization.HTMLSerializer">
>     <encoding>ISO-8859-1</encoding>
>     <omit-xml-declaration>true</omit-xml-declaration>
>    </map:serializer>
>    <map:serializer logger="sitemap.serializer.xml" name="xml"
>        src="org.apache.cocoon.serialization.XMLSerializer"
>        mime-type="text/xml" pool-max="32" pool-min="16" pool-grow="4">
>     <encoding>ISO-8859-1</encoding>
>    </map:serializer>
>After that I keep getting the same error:
>"org.apache.cocoon.ProcessingException: Failed to execute pipeline.: 
>org.xml.sax.SAXException: Original Exception IOException : Invalid byte 2 
>of 3-byte UTF-8 sequence"
>Thanks in advance,
>Carlos Dias

Lionel CRINE
Ingénieur Systèmes documentaires
Société : 4DConcept
22 rue Etienne de Jouy 78353 JOUY EN JOSAS
Tel : Fax :

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

View raw message