Forum Moderators: not2easy

Message Too Old, No Replies

Should we use characters other than ASCII in CSS file

         

foxfox

6:23 pm on Apr 29, 2007 (gmt 0)

10+ Year Member



such as the name of a particular font in foriegn language?

or even CSS comments?

Robin_reala

10:53 pm on Apr 29, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



No reason not to that I can think of (in fact CSS2.1 explicitly requires UTF-8 support [w3.org]). You’ll obviously need to set the server’s HTTP encoding type up correct, and it probably wouldn’t hurt to put an
@charset
rule at the top of your stylesheet:

@charset "UTF-8";