Karen Dec <[EMAIL PROTECTED]> wrote:
Parse Error - [EMAIL PROTECTED] "UTF-8";
My CSS starts with:
@charset "UTF-8";
Your text editor is not showing you everything that's actually in the file. There are three high bytes before the @charset, and the validator doesn't like it.
Those three bytes are the UTF-8 representation of the Unicode character FEFF, which is used as the "Byte Order Mark" in UTF-16 to distinguish between the two different byte ordering flavours it can use (ugh, UTF-16 is nasty). In that case the character is meaningless and is removed before it gets to the parser.
Including a BOM in UTF-8 (or, more accurately, 'signature', since there is no byte order problem to solve here) is more controversial, since it buggers up UTF-8's goal of compatibility for ASCII tools, and is in general a bit pointless.
I would advise against using the BOM/signature in UTF-8. (Whether the validator is right to disallow it is not clear to me from spec.) Check the save box of your text editor for an option to 'include BOM' or 'signature' and turn it off.
Alternatively, to avoid all CSS encoding issues, use plain ASCII with backslash-escapes for any special characters.
-- Andrew Clover mailto:[EMAIL PROTECTED] http://www.doxdesk.com/ ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
