cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Dumon <br...@outerthought.org>
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">
      <encoding>UTF-8</encoding>
    </map:serializer>

this should fix it.

Background information on this can be found at:
http://wiki.cocoondev.org/Wiki.jsp?page=RequestParameterEncoding

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno@outerthought.org                          bruno@apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message