Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: UTF-8 & Unicode

From: "Alan J. Flavell" <flavell@--.---.--.-->
To: NULL
Date: 2/2/2005 6:11:00 PM
On Wed, 2 Feb 2005, Richard Tobin wrote:

> In most circumstances UTF-8 is the default encoding for XML if there
> is no encoding declaration.

It's a bit more complicated than that.

http://www.w3.org/TR/2000/REC-xml-20001006#charencoding

The /default/ is to look for a BOM - failing which, utf-8 is assumed.

On the other hand, it seems you've caught me out with the next bit:

>  In theory for text/* served by HTTP,
> 8859-1 is (or was - they may have changed it) the default.

HTTP hasn't changed.  RFC2616 section 3.7.1, last paragraph.  Thanks!

So I suppose /that/ was the explanation for the W3C validator not
failing the cited page from w3schools.  Thanks.

> But if you stick to ascii, it won't matter.

True - although that's hardly a very efficient way to write, say, 
Cyrillic, or Arabic, or Japanese.


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent