I'm having problems with character encodings. I've specified in every place I could think of that I want all XHTML pages to be rendered as UTF-8. However, when I view them in a browser I get garbage for all of the "special" characters. When I manually toggle the browser's text encoding the UTF-8 everything is fine. Can any one suggest how I can configure Cocoon 2.1.3 to output UTF-8?

sitemap.xmap
===========
<map:serializers default="xhtml">
<map:serializer logger="sitemap.serializer.xhtml" mime-type="text/html" name="xhtml"
pool-grow="2" pool-max="64" pool-min="2" src="org.apache.cocoon.serialization.XMLSerializer">
<doctype-public>-//W3C//DTD XHTML 1.0 Strict//EN</doctype-public>
<doctype-system>http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</ doctype-system>
<encoding>UTF-8</encoding>
</map:serializer>
</map:serializers>


transform
==========
<xsl:output
        method="xml"
        doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
        doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";
        encoding="UTF-8"
        indent="no"
        omit-xml-declaration="yes"
        cdata-section-elements="script"/>

XHTML result
===========
<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml";>
        <head>
                <meta content="text/html; charset=utf-8" http-equiv="content-type"/>

Thanks.

- Justin Makeig

--
Product Manager
The Center for Document Engineering
University of California, Berkeley
http://cde.berkeley.edu/


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to