-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some characters are changed after render. #94
Comments
This is a bug. Currently, all string escapes are parsed and represented in the charset specified. Since you probably did not specify a charset either in the parser settings or the source CSS (via The fix would be as follows:
|
Can you please provide snippet/sample ... Thanks. |
A snippet for what? |
Snippet for changing character set or you will fix it in future.. ? |
Put, |
The only fix that will certainly work is using some utf-encoding all the way. |
I'm having this same problem. How do I set the utf-8 encoding? |
I guess this should be resolved by #116 |
I use FontAwesome and i have the same problem! What can i do to fix it ? $oCssParser = new Sabberworm\CSS\Parser('.a:after{content:"\f2da"}');
$oCssDocument = $oCssParser->parse();
echo $oCssDocument; Result: PHP notice: iconv(): Wrong charset, conversion from `utf-32le' to `utf-8' is not allowed
.a:after {content: "";} |
Hi,
I am facing problem about characters ...
.glyphicon-shopping-cart:before{content:"\e116"}
are converted into
.glyphicon-shopping-cart:before {content: "î„–";}
The text was updated successfully, but these errors were encountered: