cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Dumon <>
Subject Re: Woody and encoding forms.
Date Fri, 07 Nov 2003 13:28:03 GMT
On Fri, 2003-11-07 at 14:20, Marcin Okraszewski wrote:
> Hi.
> I have problem with encoding of Woody webforms. I tried registration 
> sample and when I write non-us characters the form comes refilled with 
> two strange singns instead of one I've inputed ("coś" is converted to 
> "coÅ›").
> How to manage with this?

It's a problem with the default configuration of Cocoon, but it's easy
to fix:

* edit the web.xml file, and uncomment the form-encoding init parameter
and set it to UTF-8 (do NOT touch the container-encoding parameter)

* edit the root sitemap.xmap, and set the encoding of the html
serializer to UTF-8:

    <map:serializer logger="sitemap.serializer.html"
mime-type="text/html" name="html" pool-grow="4" pool-max="32"
pool-min="4" src="org.apache.cocoon.serialization.HTMLSerializer">

this should fix it.

Background information on this can be found at:

Bruno Dumon                   
Outerthought - Open Source, Java & XML Competence Support Center                

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

View raw message