W3C home > Mailing lists > Public > www-style@w3.org > August 2009

Re: Non-ASCII characters in CSS

From: L. David Baron <dbaron@dbaron.org>
Date: Mon, 3 Aug 2009 08:46:06 -0700
To: www-style@w3.org
Message-ID: <20090803154606.GA5225@pickering.dbaron.org>
On Monday 2009-08-03 16:32 +0100, Phil Archer wrote:
> Please forgive me if this is an old question but is it actually wrong to  
> have non-ASCII characters in CSS? i.e., is this invalid:
>
> #fundaciĆ³n {
>   background-color:#fff;
> }
>
> I ask because the validator throws it out but it seems a bit harsh!

It's valid.  It's probably also a good idea to use an @charset
rule at the *very* beginning of the style sheet.  (Could the
validator be complaining because it thinks the style sheet is in a
different encoding than it actually is?)

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Monday, 3 August 2009 15:46:44 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:20 GMT