You are here: Re: Prevalence of XHTML? « HTML « IT news, forums, messages
Re: Prevalence of XHTML?

Posted by Jukka K. Korpela on 04/23/07 19:36

Scripsit Bergamot:

> cwdjrxyz wrote:
>>
>> Is there some specification by the W3C that says UTF-8 or UTF-16 must
>> be used for some version of xhtml 1.0 or xhtml 1.1?
>
> I believe W3C recommends UTF-8, but there is no requirement to do so.

I think we should refrain from claiming that W3C (or some other
organization) recommends something unless we _know_ it does.

I have not seen any such recommendation. You could construe the _default_ as
a recommendation: XML documents are assumed to be UTF-8 or UTF-16 encoded,
unless specified otherwise.

Then there's the practical point that if you use some other encoding, you
should declare it in the XML declaration, which throws IE 6 into Quirks
mode. This has nothing to do with W3C recommendations, though. Besides, you
can specify the encoding in HTTP headers, unless the server administration
prevents that.

There's also the practical point that UTF-16 is a poor choice for web pages,
due to poor support in browsers and search engines.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация