Hi,
Encoding is really in the serialization/deserialization. Dunno if
you're working with SAX or DOM -- it sounds a little like DOM. Either way, if
you have a java.lang.String it's 'encoding neutral' -- Java has methods to
transform it into different encodings if you want an array of bytes or you set
the encoding on the Serializer or OutputStream...
Chris
-----Original Message-----
From: Jonathan Whitall [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 15, 2003 6:39 AM
To: [EMAIL PROTECTED]
Subject: character encodings with Xerces
Hello,
I was wondering if Xerces can convert from one text
encoding to another specified one on the fly. I have
some data that is stored in UTF-8 in a database, and I
want to be able to create text nodes which are in the
set of Latin-1. If I pass UTF-8 to, say, the creator
of a text node, can it convert this automatically, or
do I have to lop off the bytes that I don't want
manually?
Thank you very much for your help,
Jonathan
__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]