Ok.

 

I already found out how-to  ;-)

 

http://cocoon.apache.org/2.2/1366_1_1.html     4. Setting Cocoon's
encoding (especially CForms)  solved my issue.

Cheers,

Robby

 

 

From: Robby Pelssers [mailto:robby.pelss...@ciber.nl] 
Sent: Wednesday, May 27, 2009 12:34 PM
To: users@cocoon.apache.org
Subject: xml encoding issue cocoon2.2

 

Hi all,

 

I can't seem to set encoding properly when writing xml to a file using
the write-source transformer.  Googling around has not yet resulted in a
solution ;-(

 

In my sitemap I have declared the serializer like below:

 

       <map:serializer logger="sitemap.serializer.xml"
mime-type="text/xml" name="xml"
src="org.apache.cocoon.serialization.XMLSerializer">

          <encoding>UTF-8</encoding>

       </map:serializer>

 

 

All my stylesheets contain following 

 

  <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>

 

But nothing seems to affect the end result:

<?xml version="1.0" encoding="ISO-8859-1"?>

 

Anybody who can explain how to override the encoding to UTF-8?

 

Thx in advance,

Robby

 

Reply via email to