W3C home > Mailing lists > Public > public-qa-dev@w3.org > June 2004

Re: [CSSVal] charset issues

From: Dominique HazaŽl-Massieux <dom@w3.org>
Date: Tue, 29 Jun 2004 11:44:22 +0200
To: Bjoern Hoehrmann <derhoermi@gmx.net>
Cc: Yves Lafon <ylafon@w3.org>, QA Dev <public-qa-dev@w3.org>
Message-Id: <1088502262.1498.131.camel@stratustier>
Le mar 29/06/2004 ŗ 11:16, Bjoern Hoehrmann a ťcrit :
> I think we currently do not determine the encoding of style sheets...
> I think we need to ask the CSS Working Group how the CSS Validator is
> supposed to determine it.

CSS 2 and CSS 2.1 defines precisely how this should be done:
http://www.w3.org/TR/CSS2/syndata.html#q23
http://www.w3.org/TR/2004/CR-CSS21-20040225/syndata.html#q23

CSS1 is much less clear on the topic:
http://www.w3.org/TR/REC-CSS1#appendix-c

It looks reasonable though to follow the rules:
- HTTP charset if defined
- @charset if defined
- utf-8 otherwise (which is probably fine, since most css are likely to
be in us-ascii)

Dom
-- 
Dominique HazaŽl-Massieux - http://www.w3.org/People/Dom/
W3C/ERCIM
mailto:dom@w3.org


Received on Tuesday, 29 June 2004 05:45:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 19 August 2010 18:12:44 GMT