Hi,
JSON defines String as a sequence of zero or more *Unicode* characters.
Jersey lacks support for JSON non-Unicode encodings when using Jackson,
as Jackson only supports Unicode out of the box (see [1]).
Is there any chance you could switch to using Unicode encoding instead
of ISO-8859-1?
~Jakub
[1]
http://jackson.codehaus.org/1.7.4/javadoc/org/codehaus/jackson/JsonEncoding.html
On 06/09/2011 12:39 PM, Maxrunner wrote:
> Im using jersey with jackson, and this does not work:
>
>
> @GET
> @Produces({"application/x-www-form-urlencoded;charset='iso-88591'",MediaType.APPLICATION_JSON})
> @Path("/getOrganica")
> public OrganicaMobileEntity getOrganica(){
>
> return fillOrganica(123,"Organicão Mind","2010-12-23",true);
>
> }
>
> Gives me an error.
>
>
>
> --
> View this message in context: http://jersey.576304.n2.nabble.com/Set-specific-encoding-in-Jersey-server-tp4618027p6457283.html
> Sent from the Jersey mailing list archive at Nabble.com.
>