2015-05-24 5 views
5

में संरक्षित नहीं है। मैं अपने .sass फ़ाइल में एक यूनिकोड से बचने का उपयोग कर रहा हूं और मैं इसे संरक्षित करना चाहता हूं, लेकिन सास आउटपुट में एक अजीब चरित्र बना रहा है। इसे कैसे हल करें?सास: यूनिकोड एस्केप .css फ़ाइल

मैं मैक और सैस संस्करण 3.4.13 का उपयोग कर रहा हूं।

[email protected] /tmp $ cat new.sass 
.icon-ok 
    &:before 
    content: "\e601" 
[email protected] /tmp $ sass new.sass new.css 
[email protected] /tmp $ cat new.css 
@charset "UTF-8"; 
.icon-ok:before { 
    content: ""; } 

/*# sourceMappingURL=new.css.map */ 
+0

भी संबंधित हैं: http://stackoverflow.com/questions/25677306/sass-3 -4-1-एस्केपिंग-ए-270E-में-270E-जो ब्रेक-ए-font-चिह्न – cimmanon

उत्तर

6

यह known issue है। वहाँ एक वैकल्पिक हल, GitHub पर @tjbenton पोस्ट में पाया जा सकता है है:

@charset "UTF-8" 

@function unicode($str) 
    @return unquote("\"")+unquote(str-insert($str, "\\", 1))+unquote("\"") 

.icon-ok 
    &:before 
    content: unicode("e601") 

आउटपुट:

.icon-ok:before { 
    content: "\e601"; 
} 
संबंधित मुद्दे