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?

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

Yes lots but most of them agree on all of the first 128 slots which is
why the xml declaration is restricted to repertoire. so if you read those
bytes and figure it looks like ASCII, then that is enough to read as far
as encoding="iso-8859-1" or encoding="utf-8" etc, all the iso 8859
encodings, utf8, most european regional encodings on windows, mac etc
all agree the encoding of <?xml (and on on enough characters that the
encoding declaration may be read) but differ in the encoding of
characters above 127. The parser just needs to know the encoding is
sufficiently like ascii, and not (say) utf-16 or ebcdic to read the


The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 

[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