Vishal.Manchanda_at_iflexsolutions.com wrote:
>
> The default encoding in JAXB marshalling and unmarshalling is UTF-8.
> But I want to change the encoding to "MS932"
>
> I have used
>
> marshaller.setProperty("JAXB.encoding","MS932");
>
One obvious problem is that you aren't specifying the correct property
name. I assume this is just a typo in your message, otherwise you would
be seeing a PropertyException thrown from the setProperty method.
Just to make sure we're on the same page, you should be using:
marshaller.setProperty( Marshaller.JAXB_ENCODING, "MS932" );
--Ryan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net