OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SAX InputSource and character streams



David Megginson wrote:


> 1. With a Java character stream, there's no way to know what the
> original encoding might have been, so the encoding declaration is
> moot.

Yes.
 
> 2. A Java character stream is presented (more-or-less) in UTF-16, so
> the encoding declaration, if present, should agree with that.

No.  That would require you, if preprocessing the byte stream
into a character stream in accordance with the encoding, to change
that same encoding in the process, quia absurdum.


-- 
There is / one art             || John Cowan <jcowan@reutershealth.com>
no more / no less              || http://www.reutershealth.com
to do / all things             || http://www.ccil.org/~cowan
with art- / lessness           \\ -- Piet Hein