Incorrect behaviour with utf-16 meta declaration

Checking 
http://www.w3.org/International/tests/i18n-checker/utf16/utf16le-charset-html5.html

I get the following error messages:

[[
Error Line 5, Column 70: Internal encoding declaration specified utf-16 
which is not an ASCII superset. Continuing as if the encoding had been 
utf-8.

<meta http-equiv="Content-Type" content="text/html; charset=utf-16" />

✉
Error Line 5, Column 70: Internal encoding declaration utf-8 disagrees 
with the actual encoding of the document (utf-16).

<meta http-equiv="Content-Type" content="text/html; charset=utf-16" />
]]


It is incorrect to parse the document as utf-8, since the document 
actually *is* a utf-16 document. You can report that use of the utf-16 
meta declaration is against the spec in utf-16 documents, but not assume 
that the encoding is wrong.

RI

-- 
Richard Ishida
Internationalization Activity Lead
W3C (World Wide Web Consortium)

http://www.w3.org/International/
http://rishida.net/


Register for the W3C MultilingualWeb Workshop!
Limerick, 21-22 September 2011
http://multilingualweb.eu/register

Received on Sunday, 3 July 2011 09:32:39 UTC