users@jersey.java.net

[Jersey] Re: how to rename XmlRootElement in JSON

From: Tatu Saloranta <tsaloranta_at_gmail.com>
Date: Sun, 12 Jun 2011 22:28:57 -0700

On Sun, Jun 12, 2011 at 7:47 AM, Maxrunner <joao.rossa_at_gmail.com> wrote:
> So if i send the data in UTF-8 in this case im using android as the client
> side, how do i convert back to iso-8859-1?

Usually you do not need to convert anything to ISO-8859-1.
Java Strings and characters do not use any encoding within JVM (or,
technically it might be considered UCS-2, but really it is mostly
opaque to Java code), so all you usually need is to ensure external
encodings are properly converted to String or char[].

-+ Tatu +-