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