Kenneth Roper wrote:
> Hi
> 
> I'm trying to set up my cocoon application to handle strings with
> Umlauts in (e.g. "ÄäÖöÜüß").  I'm using Cocoon 2.0.2.
> 
> Any string with an umlaut was being mangled between posting from the
> browser, and appearing in my variable in an action when I used the
> command:
> 
> String mangled= myCocoonRequest.getParameter(name);
> 
> The string I get from mangled is: "ÄäÖöÜüß", whereas it should
> be: "ÄäÖöÜüß".
> 
> I've left all of cocoon's character encoding settings on the defaults. 
> Does anyone know what I'm doing wrong?
> 
> Thanks.
> Kenneth

Change the encoding of your HTML pages by setting the encoding property 
on the serializer:

     <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">
       <buffer-size>1024</buffer-size>
       <encoding>iso-8859-1</encoding>
     </map:serializer>

The browser should recognize the encoding and send back data in 
ISO-8859-1. I don't know if what I've just written is entirely correct, 
but it sure saved my day when faced with a similar situation.

        Ugo


-- 
Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
Phone: +39.0382.525100 - 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