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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
