I'm using JAX-RS to create a web (rest) service that returns results in JSON format.
Everything is OK, except the encoding.
For example, I get:
..., parameter:"Dep\u00f3sitos" ,...
Instead of:
..., parameter:"Depósitos" ,...
I've tried using:
@Produces("application/json; charset=UTF-8")
but the problem remains. If I return it as XML using just:
@Produces("application/xml")
Everything is ok.
What do I need to set to produce the right type?