character encodings with Xerces 2003-05-15 - By Christopher Ebert
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:fiddlerpianist@(protected)] Sent: Thursday, May 15, 2003 6:39 AM To: xerces-j-user@(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: xerces-j-user-unsubscribe@(protected) For additional commands, e-mail: xerces-j-user-help@(protected)
--------------------------------------------------------------------- To unsubscribe, e-mail: xerces-j-user-unsubscribe@(protected) For additional commands, e-mail: xerces-j-user-help@(protected)
|
|