OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Is it a well-formedness error to use a character not in theencoding specified by the XML declaration?

Hi Folks,

Consider this simple XML document. The XML declaration specifies an encoding of US-ASCII. The document contains an  ligature, which is not a US-ASCII character:

<?xml version="1.0" encoding="US-ASCII"?>

Should I get an error when I check this document for well-formedness? I checked and didn't get an error. I was surprised, as I thought that this would be a well-formedness error.


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS