Hi,
I've asked the same question yesterday. And the solution (unfortunately) was exactly the same!


Regards,
Marcin

This looks to be a problem with Tomcat 4.1.29. I'm not quite sure how to resolve it, but running Cocoon 2.1.3 in Tomcat 4.1.27 seems to work.

- Justin


On Nov 18, 2003, at 4:42 PM, Justin Makeig wrote:


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

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



Reply via email to