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 : > 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 in a web form. > > Than

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 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: decodeURI("www.coru%F1a.es")

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 : > > 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: "www.coru%c3%b1a.es