Bruno Dumon dijo:
>> I only can't explain why the container-encoding in web.xml has to be set
>> to ISO-8859-1. If anybody knows about this, please add it to this text.
>> Any other setting I tried to use didn't work out.
>
> It has to be ISO-8859-1, always. This is because the servlet
> specification requires that request parameters are by default decoded as
> ISO-8859-1 (regardless of the default platform encoding). The only
> reason I can imagine this is configurable at all is to work around buggy
> servlet containers.
>
> More background on all this is also available at:
>
> http://wiki.cocoondev.org/Wiki.jsp?page=RequestParameterEncoding
I never saw the abovelinked page before. But for more than a year I have
this set is web.xml:
<init-param>
<param-name>container-encoding</param-name>
<param-value>utf-8</param-value>
</init-param>
<init-param>
<param-name>form-encoding</param-name>
<param-value>utf-8</param-value>
</init-param>
In the site map we are using this HTML 4.01 serializer component:
<map:serializer name="html" ....>
<doctype-public>-//W3C//DTD HTML 4.01 Transitional//EN</doctype-public>
<doctype-system>http://www.w3.org/TR/html4/loose.dtd</doctype-system>
<encoding>ISO-8859-1</encoding>
<buffer-size>1024</buffer-size>
<omit-xml-declaration>true</omit-xml-declaration>
</map:serializer>
With this configuration we are able to connect to a PostgreSQL database
UTF-8 encoded.
Hope this help.
Best Regards,
Antonio Gallardo
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]