UTF-8 XML & Text serializers on lettuce Cocoon
Posted by gregster on 01 Feb 2007 in Servers, Activity log
At about line 350 in the root sitemap is the serializer for xml. It does not include an encoding, so we change it to look like this:
<map:serializers default="html"> <map:serializer logger="sitemap.serializer.links" name="links" src="org.apache.cocoon.serialization.LinkSerializer"/> <map:serializer logger="sitemap.serializer.xml" mime-type="text/xml" name="xml" src="org.apache.cocoon.serialization.XMLSerializer"> <encoding>UTF-8</encoding> </map:serializer>The text serializer (line 420-ish) needs to be adjusted in a simliar fashion:
<map:serializer logger="sitemap.serializer.text" mime-type="text/plain" name="text" src="org.apache.cocoon.serialization.TextSerializer"> <encoding>UTF-8</encoding> </map:serializer>These settings now override any other customizations. I've adjusted the documentation to reflect this.