Menu

#22 Problem with unicode characters ending by "22"

closed
RBRi
None
5
2012-07-18
2008-04-01
No

hello,

With SACParserCSS2, the following style rule

span:before {
content: "•";
}

throws this error :

Error in style rule. Invalid token "\"". Was expecting one of: , "}", ",", ";", "/", "+", "-", <hash>, <string>, <uri>, <important_sym>, "inherit", <ems>, <exs>, <length_px>, <length_cm>, <length_mm>, <length_in>, <length_pt>, <length_pc>, <angle_deg>, <angle_rad>, <angle_grad>, <time_ms>, <time_s>, <freq_hz>, <freq_khz>, <dimen>, <percentage>, <number>, "rgb(", <function>, <ident>, <unicoderange>.
Ignoring the following declarations in this rule.</unicoderange></ident></function></number></percentage></dimen></freq_khz></freq_hz></time_s></time_ms></angle_grad></angle_rad></angle_deg></length_pc></length_pt></length_in></length_mm></length_cm></length_px></exs></ems></important_sym></uri></string></hash>

I did some other tests. I have an error when the hexadecimal value of the unicode character ends with "22".
• = 2022
Ģ = 0122
Т (russian) = 0422
and so on

I suppose it's because the hexadecimal value of the quote " is 22

Thanks,

Vincent

Discussion

  • Vincent Calame

    Vincent Calame - 2008-04-02

    Logged In: YES
    user_id=2051892
    Originator: YES

    Precision : the following syntax works (of course) :

    span:before {
    content: "\002022";
    }

     
  • RBRi

    RBRi - 2011-07-27

    Now fixed in SVN. Thanks for reporting.

     

Anonymous
Anonymous

Add attachments
Cancel