cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lionel Crine <cr...@4dconcept.fr>
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.

BUT :
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.

Lionel



At 20:34 23/02/2004 +0000, you wrote:
>Hi!!!
>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 
>here:
>    <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 : 01.34.58.70.70 Fax : 01.39.58.70.70


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


Mime
View raw message