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 7178 - CSS content: stream sent to the CSS validator may not be encoded in UTF-8
Summary: CSS content: stream sent to the CSS validator may not be encoded in UTF-8
Status: RESOLVED FIXED
Alias: None
Product: mobileOK Basic checker
Classification: Unclassified
Component: Java Library (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 minor
Target Milestone: ---
Assignee: fd
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-31 11:14 UTC by fd
Modified: 2009-08-03 15:35 UTC (History)
0 users

See Also:


Attachments

Description fd 2009-07-31 11:14:14 UTC
CSSUtils.getStylesheet encodes the CSS string to validate into a ByteArrayInputStream sent to the CSS validator.

The problem is that getBytes() is platform-dependent, and although a vast majority of platforms are likely to use UTF-8 as their default encoding, some may not and may have e.g. ISO-8859-1.

Charset to use to encode the string should be explicitly given.
Comment 1 fd 2009-08-03 15:35:43 UTC
An explicit UTF-8 encoder is now used.
The latest version of the CSS validator allows one to precise the encoding of the string, thus set to "UTF-8".