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>, <S>, <IDENT>, "", <HASH>, <IMPORT_SYM>, <PAGE_SYM>, <MEDIA_SYM>, <FONT_FACE_SYM>, ".", ":", "*", "[", <ATKEYWORD>.)
-- С наилучшими пожеланиями Василий Старцев
Log in to post a comment.
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());
Exception:
null [1:19] Error in style sheet. (Invalid token "0170F". Was expecting one
of: <EOF>, <S>, <IDENT>, "", <HASH>, <IMPORT_SYM>, <PAGE_SYM>,
<MEDIA_SYM>, <FONT_FACE_SYM>, ".", ":", "*", "[", <ATKEYWORD>.)
--
С наилучшими пожеланиями
Василий Старцев