You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Ivan Rubin <ia...@mcsla.com.ar> on 2002/04/30 18:06:27 UTC
[Fwd: Redirector and character encoding]
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 <ia...@mcsla.com.ar>
To: cocoon-users@xml.apache.org
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>