You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Sudha Sathiaseelan <Su...@plumtree.com> on 2003/05/20 20:25:09 UTC

default encoding

Hi,

Is UTF-8 the default encoding for the Document returned by org.apache.xerces.jaxp.DocumentBuilderImpl's parse?

Thanks,
Sudha

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org


Re: default encoding

Posted by Michael Rafael Glavassevich <mr...@engmail.uwaterloo.ca>.
Hi Sudha,

Internally, Java stores characters (or chars) in memory as 16-bit Unicode.
This has nothing to do with the input encoding of your document, so no
characters are not stored as UTF-8 in a DOM Document. If you don't specify your own character reader, Xerces will try to translate your
stream of bytes from whatever encoding it is to 16-bit Unicode chars, and
if you specify your own Reader, it's responsible for translation.

Hope that helps.

-----------------------------
Michael Glavassevich
mrglavas@engmail.uwaterloo.ca
4B Computer Engineering
University of Waterloo

On Tue, 20 May 2003, Sudha Sathiaseelan wrote:

> Hi,
>
> Is UTF-8 the default encoding for the Document returned by org.apache.xerces.jaxp.DocumentBuilderImpl's parse?
>
> Thanks,
> Sudha
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-user-help@xml.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org