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]
Re: [xml-dev] [Summary] Why is Encoding Metadata (e.g. encoding="UTF-8") put Inside the XML Document?

In article <007c01c7fbae$bcb6b400$59fea8c0@turtle> you write:

>> Are there any encodings that have the same encoding of <?xml 
>> but completely different encodings for other characters?

>Yes. For example iso-8859-1 and iso-8859-2.

What there aren't (as far as I know) are any encoding that are the
same for <?xml but different for other characters that might appear in
an XML declaration (which is why XML 1.1 doesn't allow the non-ascii
whitespace characters #x85 and #x2028 in the XML declaration, even
though they are normally converted to linefeed).  Encoding names can
only contain ASCII letters, digits and a few other characters.

-- Richard

"Consideration shall be given to the need for as many as 32 characters
in some alphabets" - X3.4, 1963.

[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