[r6rs-discuss] reading XML files

From: Chris Hanson <cph>
Date: Tue Nov 21 00:16:13 2006

John Cowan wrote:
> I'm sure it was deliberate to use the ASCII *repertoire*, but XML
> does not require the ASCII *encoding* -- in particular, EBCDIC
> XML is perfectly possible, so you want to do the encoding-sniffing
> using binary I/O throughout.
>
> See http://recycledknowledge.blogspot.com/2005/07/hello-i-am-xml-encoding-sniffer.html
> for the nitty gritty.

Very clever; thanks!

Since my parser supports only UTF-8/16/32 and ISO 8859, I don't need
that additional hair. But it's nice to know someone has figured it out
if I ever decide to support EBCDIC. :)
Received on Tue Nov 21 2006 - 00:16:06 UTC

This archive was generated by hypermail 2.3.0 : Wed Oct 23 2024 - 09:15:00 UTC