Hej!
Keryx webb skrev:
That's what we were discussing. If a page is sent as XHTML, one could
argue that it's supposed to be self-documenting, and that it might
mean that the xml-prologue should be more important than the
http-header. As my page proves, in FFox, MSIE and Opera (the three
I've tested) that is not the case.
Look at:
http://www.w3.org/International/tutorials/tutorial-char-enc/en/slides/Slide0400.html
Precedence rules
1. HTTP Content-Type
2. XML declaration
3. meta charset declaration
4. link charset attribute
Related to previous comments -- from an earlier slide of the tutorial:
http://www.w3.org/International/tutorials/tutorial-char-enc/en/slides/Slide0300.html
For these reasons you should always ensure that encoding information
is /also/ declared inside the document.
(and not only in the HTTP headers, that is)
I think the linked tutorial covers most of the questions regarding
declaring encodings.
/AndersN
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************