This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 20280 - UTF-8 character "nbsp" not recognized
Summary: UTF-8 character "nbsp" not recognized
Status: NEW
Alias: None
Product: CSSValidator
Classification: Unclassified
Component: Parser (show other bugs)
Version: CSS Validator
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-06 18:16 UTC by jamappi
Modified: 2012-12-23 16:32 UTC (History)
1 user (show)

See Also:


Attachments
The test file I used. (47 bytes, text/css)
2012-12-06 18:16 UTC, jamappi
Details

Description jamappi 2012-12-06 18:16:18 UTC
Created attachment 1263 [details]
The test file I used.

It seems the Jigsaw CSS validator cannot validate the file I attached. In line 1, column 38 it contains a UTF-8 non-breaking space (nbsp) char, which I think upsets the validator.

Following settings were used:

Profile: CSS level 3.
Warnings: normal.
Medium: All.
Vendor Extensions: Default.
Comment 1 Yves Lafon 2012-12-13 09:12:49 UTC
Is the file properly tagged as being in UTF-8 ?
If not, the expected charset won't be utf-8 and the validator is right in claiming it is an error.
(see @charset)
Comment 2 jamappi 2012-12-23 16:32:23 UTC
It wasn't explicitly tagged as UTF-8, just the file itself was saved as UTF-8. I added 

@charset "UTF-8";

to the file and tried validating it, but got almost the same error message. Instead of

Parse Error )Â  { } 

I now get the error message

Parse Error )  { } 

Bit clueless why this still won't validate...