users@jersey.java.net

[Jersey] Re: how to rename XmlRootElement in JSON

From: Tatu Saloranta <tsaloranta_at_gmail.com>
Date: Thu, 9 Jun 2011 11:29:56 -0700

On Thu, Jun 9, 2011 at 3:05 AM, Maxrunner <joao.rossa_at_gmail.com> wrote:
> IS it possible to encode the data in  iso-8859-1 ?

(related to the other response)

Although ISO-8859-1 (and other Latin-x encodings) are not valid for
JSON, one can create a Writer
(new OutputStreamWriter(stream, "ISO-8859-1")) and pass that to
Jackson; or use a StringWriter, serialize, take String, return that.
So it is possible, just not convenient.

-+ Tatu +-