I use JAX-RS to create a web service (rest) that returns results in JSON format.
Everything is in order, except for the encoding.
For example, I get:
..., parameter:"Dep\u00f3sitos" ,...
Instead:
..., parameter:"Depósitos" ,...
I tried using:
@Produces("application/json; charset=UTF-8")
but the problem remains. If I return it to XML, simply:
@Produces("application/xml")
Everything is good.
What do I need to create the correct type?
java json rest encoding jax-rs
Redagle
source share