Reputation: 45
I am using the environment Tomcat 7,and i have deployed my spring/rest
application.I have a method which is a post method which accepts json through @RequestBody
where some keys in json have arabic text.When i send the request to the above post method and while parse the jsonobject i am getting question marks in place of arabic text
.
Upvotes: 1
Views: 2995
Reputation: 32386
You need to accept the utf-8 encoding. if you are using POSTMAN to test your API , you can see what your application is accepting as Accept-Encoding.
If its not UTF-8 , then you need to allow this in your application.
Upvotes: 1