I am using a unicode escape in my .sass file and I want to preserve it, but sass is creating a weird character in the output. How to solve this?
解决sass 编译后特殊字符在页面上显示乱码的问题
@function unicode($str...){
$result:"";
@for $i from 1 through length($str) {
$item : nth($str, $i);
$result : $result + unquote(str-insert($item, "\\", 1));
}
@return unquote('\"')+$result+unquote('\"')
}
@charset "UTF-8"
.icon-ok{
&:before{
content: unicode("e601")
}
}