You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by koney krishna <ko...@yahoo.com> on 2004/09/20 17:54:11 UTC

getQueryString() returns garbled text when a UTF-8 International Characters passed

I am struck up with getQueryString() method in HTTPServletResponse?
I am writing to the Client ( IE Browser ) a String which is UTF-8 based.

ex:
http://localhost:8080/test.html?user=H%C3%BC%C3%9F

My browser reloads the same page again .

When I use HTTPServeletRequest.getQueryString() I get a garbled QueryString.
I get H%C3%83%C2%BC%C3%83%C2%9F where as I should get it as 
H%C3%BC%C3%9F
Which UrlEncoding does getQueryString() ???

It looks like Tomcat is URLEncoding again the QueryString so I am getting garbled QueryString.
Is there anyway to get the raw Query_String than using getQueryString() in Tomcat ?
I have changed the Server.xml ( for setting URLEncoding="UTF-8" ) & web.xml ( to enable setCharacterEncoding = UTF8 )
Please help me !!


I am struck up with this error from last 2 weeks.

Please help me !!!

thanks
kris





		
---------------------------------
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!