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
Ryan,
I'm using the correct property name exactly the way u have specified.
It's not throwing property exception.
Can u please revert with the possible solution.
---Vishal
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net
DISCLAIMER:
This message contains privileged and confidential information and is intended only for the individual named.If you are not the intended recipient you should not disseminate,distribute,store,print, copy or deliver this message.Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system.E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain viruses.The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net