Encoding with spring MVC -


I am using Spring MVC to handle my request and I need to send the string to search. For example, I am sending Caçapava , but somewhere it was converting this code, everywhere I was looking for my encoding UTF-8 . To create my view, I'm using jackson to manage my JSON and ExtJs . My request is ok, so the problem is my ExtJs Not with the request.

Request parameter:

query string parameter

_dc: 1363866108143

nomeCidade: Caçapava

page: 1

start: 0

Limit: 50

Can anyone help me? web.xml )

:

  & lt; Filter & gt; & Lt; Filter-name & gt; CharacterEncodingFilter & lt; / Filter-name & gt; & Lt; Filter range & gt; Org.springframework.web.filter.CharacterEncodingFilter & lt; / Filter range & gt; & Lt; Init-param & gt; & Lt; Ultimate Name & gt; Encoding & lt; / Lastname & gt; & Lt; Ultimate Price & gt; UTF-8 & lt; / Super-valued & gt; & Lt; / Init-param & gt; & Lt; Init-param & gt; & Lt; Ultimate Name & gt; ForceEncoding & lt; / Lastname & gt; & Lt; Ultimate Price & gt; True & lt; / Super-valued & gt; & Lt; / Init-param & gt; & Lt; / Filter & gt; & Lt; Filter-mapping & gt; & Lt; Filter-name & gt; CharacterEncodingFilter & lt; / Filter-name & gt; & Lt; URL pattern & gt; / * & Lt; / URL pattern & gt; & Lt; / Filter-mapping & gt;   

But, it may also depend on your server. There is discussion for Tomcat and refer to the URIEncoding parameter.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -