W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2008

[whatwg] A comment to character encoding declaration

From: Jjgod Jiang <gzjjgod@gmail.com>
Date: Mon, 3 Mar 2008 23:11:02 +0800 (CST)
Message-ID: <alpine.OSX.1.00.0803032303350.22634@epicalyx.local>

It's a comment to the "character encoding declaration"
section of HTML 5 spec:


During the development of CJK information processing, many
text encodings is just a strict subset of another one, for
example, GB2312 is a subset of GBK, GBK is a subset of
GB18030. For compatibility purpose, a lot of web pages used
character encoding declaration like this:

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

in their header, yet they might use characters in GBK but
not in GB2312. So, I think we can suggest clients to simply
treat encodings like these as their biggest superset, for
instance, treat GB2312 as GB18030.

BTW, browsers like Firefox seems already handles such cases
well, but Safari/WebKit seems not.

Received on Monday, 3 March 2008 07:11:02 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:40 UTC