I am using spring mvc. I am surfing to:
http://localhost:8080/services/cities/פת.html
notice that פת
is in hebrew and not english.
My controller is:
@RequestMapping(value="/services/cities/{name}", method=RequestMethod.GET)
public @ResponseBody List<SelectElement> getCities(@PathVariable String name) {
List<SelectElement> elements=null;
...
...
return elements;
}
The problem is that the controller receives פת
and not the correct characters.
How can I fix it?
Even if I surfing to: http://localhost:8080/services/cities/%D7%A4%D7%AA.html
I get this problem.