[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?
- From: "Costello, Roger L." <costello@mitre.org>
- To: "xml-dev@lists.xml.org" <xml-dev@lists.xml.org>
- Date: Thu, 18 Mar 2010 14:13:00 -0400
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"?>
<Family-Name>Lecœur</Family-Name>
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.
/Roger
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]