[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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@r...> no more / no less || http://www.reutershealth.com to do / all things || http://www.ccil.org/~cowan with art- / lessness \\ -- Piet Hein
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|