On Tue, 3 Oct 2023 at 18:05, Laurence Gonsalves <[email protected]> wrote: > > On Tue, Oct 3, 2023 at 1:39 AM sebb <[email protected]> wrote: > > > > The byte input stream does not carry any encoding information, so the > > XmlStreamReader has to guess what encoding was used. > > Determining what encoding to use when reading XML from a byte stream > is the purpose of XmlStreamReader. From its documentation: "Character > stream that handles all the necessary Voodoo to figure out the charset > encoding of the XML document within the stream." > > What it's supposed to do in this case is use the "encoding='437'" from > the input to determine that the Charset to use when decoding the byte > stream is "437" (aka "code page 437").
Sorry, I completely overlooked that. > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
