users@jersey.java.net

Re: [Jersey] Set specific encoding in Jersey server

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Mon, 01 Mar 2010 14:17:54 +0100

On Feb 23, 2010, at 10:55 AM, Robert Naczinski wrote:

> Hi all,
>
> how i can set a specific encoding in jersey server. I want get param
> in com.sun.jersey.api.representation.Form in iso-8859-1 encoded.
>

It needs to be set in the charset parameter of the media type e.g.:

   application/x-www-form-urlencoded;charset="iso-8859-1"

otherwise Jersey will default to UTF-8.

Paul.