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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -