You can override the HTMLGenerator's default settings by putting this in your sitemap:

<map:serializers default="html">
        <map:serializer name="html" mime-type="text/html; charset=UTF-8" 
logger="sitemap.serializer.html" src="org.apache.cocoon.serialization.HTMLSerializer">
                <doctype-public>-//W3C//DTD HTML 4.0 Transitional//EN</doctype-public>
                
<doctype-system>http://www.w3.org/TR/REC-html40/loose.dtd</doctype-system>
                <omit-xml-declaration>true</omit-xml-declaration>
                <encoding>UTF-8</encoding>
                <indent>1</indent>
        </map:serializer>
</map:serializers>

Change all UTF-8 to whatever encoding you need.
Good luck!

Regards,

Arjé Cahn


---------------------------------------------------------
Content Management Department
Hippo Webworks
Grasweg 35
1031 HW Amsterdam
The Netherlands
Tel  +31 (0)20 6345173 
Fax +31 (0)20 6345179
arje(at)hippo(dot)nl / www.hippo.nl



-----Original Message-----
From: gv [mailto:jgvsh@;yahoo.com]
Sent: 28 October 2002 19:30
To: [EMAIL PROTECTED]
Subject: Possible to override encoding of HTMLGenerator output?


Hi,

I am bringing some legacy HTML content into a new site
using HTMLGenerator and a transformation that alters
the XHTML.

The content has a bunch of ISO-encoded characters in
it, which causes parse problems. After some testing on
a static file, I found that when my source XHTML uses
the iso-8859-1 encoding, everything works fine.

Is there any way I can override the HTMLGenerator to
output with 'iso-8859-1' encoding instead of the
default UTF-8?

Thanks,
John


__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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

Reply via email to