W3C home > Mailing lists > Public > www-validator@w3.org > July 2011

Incorrect behaviour with utf-16 meta declaration

From: Richard Ishida <ishida@w3.org>
Date: Sun, 03 Jul 2011 10:32:15 +0100
Message-ID: <4E10371F.7040505@w3.org>
To: www-validator@w3.org
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:48 GMT