java - Spring Web - decoding URL params -
i have spring based web application running on apache tomcat 7.0.39 , request contains parameter values having special characters (utf-8 encoded).
for example:
street=r%c3%bcbenkamp+246
i need pass values db lookup first decode them. how shall it?
i tried:
urldecoder.decode(street, "utf-8");
but seems value stays same after decoding...
the thing helped modifying tomcat server.xml , adding uriencoding="utf-8" connector settings (my ws runs on port 8181)
<connector connectiontimeout="20000" port="8181" protocol="http/1.1" redirectport="8443" uriencoding="utf-8"/>
Comments
Post a Comment