users@jersey.java.net

[Jersey] Re: how to rename XmlRootElement in JSON

From: Maxrunner <joao.rossa_at_gmail.com>
Date: Sun, 12 Jun 2011 07:47:27 -0700 (PDT)

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?


On Thu, Jun 9, 2011 at 9:46 PM, Cowtowncoder [via Jersey] <
ml-node+6459588-2039672286-73314_at_n2.nabble.com> wrote:

> On Thu, Jun 9, 2011 at 11:42 AM, Maxrunner <[hidden email]<http://user/SendEmail.jtp?type=node&node=6459588&i=0>>
> wrote:
> > Oopps forgot the whole question....:P
> > Where do i use the outputstreamwriter? in the context resolver or in the
> > resource class to send to jackson?
>
> Wherever you have access to stream (InputStream / OutputStream). But
> when using automatic data-binding, it would probably have to be within
> MessageBodyReader/Writer.
>
> But easiest thing would really be to use UTF-8 encoding. That is the
> default for JSON anyway.
>
> -+ Tatu +-
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://jersey.576304.n2.nabble.com/how-to-rename-XmlRootElement-in-JSON-tp6173292p6459588.html
> To unsubscribe from how to rename XmlRootElement in JSON, click here<http://jersey.576304.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=6173292&code=am9hby5yb3NzYUBnbWFpbC5jb218NjE3MzI5MnwyMDYzODA1MDkw>.
>
>


--
View this message in context: http://jersey.576304.n2.nabble.com/how-to-rename-XmlRootElement-in-JSON-tp6173292p6467350.html
Sent from the Jersey mailing list archive at Nabble.com.