I'm having problems with sending redirections to servlet with Unicode-URLs.
i.e. consider the following url in Turkish
http://türkçeisimtescil.com
It works if you paste it into your browser's address bar. However it is translated to
by your browser upon your request.
Let's say I have first URL with UTF8-specific chars and I get it successfully from DB. I want to redirect my servlet to that URL.
However when I just do response.sendRedirect(url);
(according to headers) it redirects me to www.t%1frk%e7eisimtescil.com
I tried even response.sendRedirect("http://www.t\u011Frk\u00E7eisimtescil.com");
(inline encoding) and the response is exactly the same.
Maybe if I obtain tükrçeisimtescil.com on the headers, browser will convert it to xn--..
format and it will succeed.
I could not figure out where the encoding got broken. Any helps are appreciated.