Przemysław Lunic Przemysław Lunic - 1 month ago 5
Sass (Sass) Question

SCSS compiler replacing " with ÔÇť

I'm using sublime text 3 and SCSS compiler downloaded through package control. After having:

&:before{
content: "“";
}


it replaces mine content to:

content: "ÔÇť";


Is there any way to have good content? I have tagged my question under sass because I wasn't able to find SASS tag :)

Answer

Looks like the compiler is having issues with the special character. Instead of using the special character directly, try using the unicode value.

#test:before {
  content: "\201C"
}
#test:after {
  content: "\201D"
}
<span id="test">span</span>

Comments