cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Petteri Sulonen <>
Subject Re: Unexpected encoding in output
Date Fri, 03 Apr 2009 14:29:42 GMT
(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" 

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


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="" 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 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:
> For additional commands, e-mail:

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

View raw message