[Expat-discuss] iso-8859-1 "unknown encoding" ?
Karl Waclawek
karl at waclawek.net
Thu Feb 3 20:48:54 CET 2005
Fred L. Drake, Jr. wrote:
> On Thursday 03 February 2005 14:19, Karl Waclawek wrote:
> > I am not sure, but it could be that encoding ids are case-sensitive.
> > Expat should understand it.
>
> The XML 1.0 specification says in section 4.3.3: "XML processors SHOULD match
> character encoding names in a case-insensitive way".
>
> If we're not doing that, it's almost a bug, but I'll admit I use lower-case
> consistently. I consider a "SHOULD" to be quite important.
From the code it looks like Expat does it case-insensitive (function streqci).
So, Alexander's file should work. Alexander, please e-mail us a small example document.
Karl
More information about the Expat-discuss
mailing list