I'm encoding URLs now with URIUtil from apache for redirecting.

On the action that receives and parses the requests I set ISO-8859-1 
encoding for GET requests, and UTF-8 for POST requests, and it's working.

Thanks,

-------- Original Message --------
Subject: Redirector and character encoding
Date: Sun, 28 Apr 2002 15:32:32 -0300
From: Ivan Rubin <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]

Hello,

I'm using Redirector.redirect with a url like "message?msg=Confirmación
test"

The action that process the http requests uses
Request.setCharacterEncoding at the beginning, and it works fine when I
receive form posts with special characters, but it doesn't when I
receive a URL with parameters.

Some encoding is going on as spaces are translated to %20, but not
special characters áéíóú.

There's a way to avoid encoding the url I pass to redirect(
bsessionmode, sUrl ) or, if I have to encode it, some helper method to
do it?

I'm with cocoon-2.0.2 over tomcat 4.0.1

Thanks,

Ivan



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to