I need to send some language specific characters in my json to a local tomcat server I am running. Everytime it encounters those characters, it says "400 - Request is syntactically incorrect", as expected
Any work arounds? Also, I don't want it to support certain specific languages, but keep it generic and support all languages that the browser sending the request supports.
Supporting Spring MVC at the backend, which will process the json input
Sample:
абвгдеёжзийклмнопрстуфхцчшщъыьэюя=один
Controller code:
@RequestMapping(value = "/services", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<Response1> executeService(
@RequestBody Request1 request) {
//controller code
}
Json request:
{
"serviceName":"abc",
"input":{
"text":"абвгдеёжзийклмнопрстуфхцчшщъыьэюя=один"
}
}
P.S. Json is valid for English characters, controller works normally if I send normal English characters, and correct output is displayed in that case.
Check comments for specific errors faced