This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
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.
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".