(1) Check your web.xml. You should have the init-param "form-encoding" set to "UTF-8". (It's set by default to ISO-8859-1 on at least some versions of Cocoon.) (2) Check your sitemaps, starting from the Cocoon root sitemap. You can set the encoding of your serializers there, for example

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

...under /map:sitemap/map:components/map:serializers.

/Petteri

Peter Flynn wrote:
I have an RSS feed from our home page which is being generated by pulling in the HTML and Tidying it:

<map:match pattern="ucc">
  <map:generate src="http://www.ucc.ie/en/"; type="html"/>
  <map:transform src="xsl/ucc.xsl"/>
  <map:serialize type="xml"/>
</map:match>

This works, except that the output starts with the XML Declaration claiming <?xml version="1.0" encoding="ISO-8859-1"?>

But the home page is UTF-8, the ucc.xsl file is UTF-8, the xsl:output inside it specifies UTF-8, and tidy.properties specifies char-encoding=UTF-8.

Something, somewhere is interfering, and adding this encoding="ISO-8859-1", but I'm at a loss where to look.

I also notice that all my generated HTML from Cocoon is being labelled with <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> but I can't find where to turn this off.

///Peter


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to