[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: SAX InputSource and character streams
- From: John Cowan <jcowan@reutershealth.com>
- To: David Megginson <david@megginson.com>
- Date: Mon, 12 Mar 2001 10:25:44 -0500
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