Re: Problem using response.sendRedirect to redirec t to URL that includes ñ or tilde

2010-05-17 Thread Konstantin Kolinko
2010/5/17 Perez Manglano, Moises moises.per...@t-systems.es: I´ve tried this: -- response.sendRedirect (www.coruña.es);  -- The result in the web browser is: www.coru%f1.es -- response.sendRedirect (URLEncoder.encode(www.coruña.es), UTF-8); -- The result in the web browser is:

Re: Problem using response.sendRedirect to redirec t to URL that includes ñ or tilde

2010-05-17 Thread Kris Schneider
On Mon, May 17, 2010 at 10:39 AM, Perez Manglano, Moises moises.per...@t-systems.es wrote: I´ve tried this: -- response.sendRedirect (www.coruña.es);  -- The result in the web browser is: www.coru%f1.es Interesting, because if you ask JavaScript to decode %F1, you get an error:

Re: Problem using response.sendRedirect to redirec t to URL that includes ñ or tilde

2010-05-17 Thread Konstantin Kolinko
You would have to process domain name and the rest of the URL separately. 2010/5/17 Perez Manglano, Moises moises.per...@t-systems.es: This server was just an example. I have to fix my code to redirect to any URL that may contain ñ or tildes, because this is a field than any user can fill