RE: Woody and encoding forms.

2003-11-07 Thread Carmona Perez, David
This is an encoding problem.  It seems UTF-8 interpreted as the Western encoding 
(sorry I don't remember its name)



David

-Mensaje original-
De: Marcin Okraszewski [mailto:[EMAIL PROTECTED]
Enviado el: viernes, 07 de noviembre de 2003 14:21
Para: [EMAIL PROTECTED]
Asunto: Woody and encoding forms.

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?

Regards,
Marcin Okraszewski

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


Re: Woody and encoding forms.

2003-11-07 Thread Bruno Dumon
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
  encodingUTF-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
[EMAIL PROTECTED]  [EMAIL PROTECTED]


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