But when I used Firefox restclient console to send same request, it works well.
I capture these 2 http packages with wireshark and compare.
Found that the content-type in failed request header only has the application/json but no charset=utf-8
I have tried to add the below lines before addEntry(data), but useless:
Representation entity = new StringRepresentation("",
So my question is how to set the charset=utf-8 with wrapped resource class?