I did change the file web.xml:
-web.xml snip-
<init-param>
<param-name>container-encoding</param-name>
<param-value>ISO-8859-1</param-value>
</init-param>
<init-param>
<param-name>form-encoding</param-name>
<param-value>utf-8</param-value>
</init-param>
-snip-
But if I look at the logs I get:
-core.log snip-
REQUEST: /test/AYG%C3%9CL.html
CONTEXT PATH:
SERVLET PATH: /test/AYG�?L.html
-snip-
And in my flowscript I print my parameters that were passed with my function
call:
-flow.log snip-
parameter dataSrc before conversion= test/AYG�?L.xml <- that's what
I get by retreiving the parameter
parameter dataSrc after conversion: dataSrc=test/AYG�L.xml <- after my
own conversion from iso-8859-1 to utf-8
-snip-
I'm using cocoon 2.1 cvs head updated last 2/2/2004, running with jetty.
Jan
----- Original Message -----
From: "Bruno Dumon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 11, 2004 9:47 AM
Subject: Re: AW: Special chars problem
> On Wed, 2004-02-11 at 08:59, Jan Hoskens wrote:
> > After searching the archives, I found some stuff about the encoding in
> > cocoon. I tried changing the ISO-8859-1 to UTF-8 in the web.xml, but
that
> > did not change the problem.
> > (http://marc.theaimsgroup.com/?t=106760662600010&r=1&w=2)When I passed
the
> > url, it still was in the wrong format 'A?'(String assuming Unicode
instead
> > of UTF-8). I found a wiki page concerning encoding in cocoon at
> > http://wiki.cocoondev.org/Wiki.jsp?page=RequestParameterEncoding. I
fixed my
> > problem by applying a conversion to all parameters in my flow that may
> > contain an incoming url. This conversion is also stated in the wiki
page:
> > value = new String(value.getBytes("ISO-8859-1"), "UTF-8");So whenever
you're
> > using parameters and passing something that's UTF-8, do that conversion
to
> > avoid problems concerning the special chars.
>
> As explained on that wiki page, this conversion is exactly what Cocoon
> already does for you. If it does not work, it's likely because of a
> misconfiguration (except if there got some new bug in there, which I
> doubt).
>
> So in the web.xml, you put the container-encoding to ISO-8859-1 and the
> form-encoding to UTF-8?
>
> --
> 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]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]