users@jersey.java.net

Re: Change default Xml Encoding

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Wed, 06 Feb 2008 10:22:01 +0100

Hi Ben,

Ben wrote:
> Hi there,
>
> I wonder what is the easiest way to specify for a Resource that produces
> "application/xml" a jaxb.encoding of ISO-8859-1 instead of the default
> UTF-8?
>

It is not possible to do this in 0.5. But it is possible in 0.6:

   https://jersey.dev.java.net/servlets/ReadMsg?list=users&msgNo=598

It seems a little involved but with some helper classes it should take
the pain away. Maybe the tooling can generated some code for such
customization.

Paul.

> Rigth now i have more or less just the converters and resources that
> come with nb6.0 ->generate rs from entity classes.
>
>
>
> Thanks! Ben
>

-- 
| ? + ? = To question
----------------\
    Paul Sandoz
         x38109
+33-4-76188109