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.Hope this helps others!:)Bye,

Jan

----- Original Message ----- 
From: "Jan Hoskens" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 10, 2004 11:41 AM
Subject: Special chars problem


> Hi,
>
> I'm creating a link on a page that contains a special char 'Ü'. When I
look
> at the link this gets translated to '%C3%9C'. When this gets passed to my
> flow (link is an xml that will be edited by woody/flow combination) as a
> parameter, I get 'Ã?'. Somewhere the encoding is done wrong, but I can't
> figure out where.
>
> Thankz,
>
> Jan
>
>
> ---------------------------------------------------------------------
> 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]

Reply via email to