users@jaxb.java.net

RE: Re: Encoding

From: <Vishal.Manchanda_at_iflexsolutions.com>
Date: Tue, 28 Sep 2004 15:21:53 +0530

I'm marshalling it into an element and then creating a xml document .
Xml document is not showing the characters correctly.
 

-----Original Message-----
From: Jochen Wiedmann [mailto:jochen.wiedmann_at_softwareag.com]
Sent: Tuesday, September 28, 2004 2:47 PM
To: users_at_jaxb.dev.java.net
Subject: Re: Encoding

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





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