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.
Thanks for your reply. Best regards. -----Mensaje original----- De: Konstantin Kolinko [mailto:[email protected]] Enviado el: lunes, 17 de mayo de 2010 16:59 Para: Tomcat Users List Asunto: Re: Problem using "response.sendRedirect" to redirect to URL that includes "ñ" or tilde 2010/5/17 Perez Manglano, Moises <[email protected]>: > > 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." > --> response.sendRedirect (URLEncoder.encode("www.coruña.es"), "UTF-16"); --> > The result in the web browser is: "www.coru%fe%ff%00%f1a.es/" > > In all cases the web browser (IE8, Firefox 3.6) can´t find the server. > The true domain name for that server is http://www.xn--corua-rta.es/ http://en.wikipedia.org/wiki/Internationalized_domain_name Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] This e-mail and any attachments may contain confidential or privileged information. Any unauthorized copying, use or distribution of this information is strictly prohibited. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
