On Mon, 2005-03-07 at 11:02 +0100, stefan pickschneider wrote:
> > This problem is already fixed, though in a different way:
> > 
> > http://svn.apache.org/viewcvs.cgi/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/servlet/CocoonServlet.java?rev=106200&r1=55730&r2=106200
> 
> Hey Bruno,
> 
> thanks for your reply.
> 
> I am not sure if the above patch fixes the problem I mentioned.
> 
> The patch replaces
>    this.defaultFormEncoding);
> by
>    this.containerEncoding);
> 
> In our configuration the
> defaultFormEncoding == containerEncoding == "UTF-8" - so the patch
> doesn't seem to have a influence on our problem :-(

then your configuration is wrong :-) The containerEncoding should be
ISO-8859-1, always.

> 
> Somewhere the encoding for the Parameters is set to ISO-8859-1 probably 
> because no encoding is set until the first call of getParameter*().

Cocoon doesn't rely on the setCharacterEncoding support of the
webcontainer, basically because of historical reasons, that method
didn't always exist. Additionally, Cocoon's approach has the advantage
that it allows to change the encoding from the sitemap, allowing
different parts of the sitemap to use different encodings.

-- 
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]

Reply via email to