I have a problem using spring mvc and special chars in a GET request. Consider the following method:
@RequestMapping("/update")
public Object testMethod(@RequestParam String name) throws IOException {
}
to which I send a GET request with name containing an "?" (german umlaut), for instance. It results in spring receiving "?¤" because the browser maps "?" to %C3%A4
.
So, how can I get the correct encoded string my controller?
Thanks for your help!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…