wstarcev - 2013-02-19

Hello,

I have xml with cyrillic tag names. And try to use CSSParser to parse css.

My code example:

InputSource source = new InputSource(new InputStreamReader(new
StringBufferInputStream("@charset \"UTF-8\"; абзац {color: red;}")));
CSSOMParser parser = new CSSOMParser(new SACParserCSS3());

    try {
        parser.parseStyleSheet(source, null, null);

    } catch (IOException e) {
        e.printStackTrace();
    }

Exception:

null [1:19] Error in style sheet. (Invalid token "0170F". Was expecting one
of: <eof>, , <ident>, "", <hash>, <import_sym>, <page_sym>,
<media_sym>, <font_face_sym>, ".", ":", "*", "[", <atkeyword>.)</atkeyword></font_face_sym></media_sym></page_sym></import_sym></hash></ident>
</eof>

--
С наилучшими пожеланиями
Василий Старцев