users@jaxb.java.net

Re: Encoding

From: Jochen Wiedmann <jochen.wiedmann_at_softwareag.com>
Date: Tue, 28 Sep 2004 11:17:12 +0200

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");
>
> but it is not working.............

How do you do the marshalling? For example, if you marshal into a string
and later write that string to an InputStream, then you need to use the
same encoding when converting the string into a byte stream.


Jochen

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net