2012-12-21 89 views
0

我剛剛更新Ruby和嘗試啓動指南針的時候,現在我發現了以下錯誤:羅盤式(紅寶石)編碼錯誤

Encoding::CompatibilityError on line ["28"] of /usr/local/Cellar/ruby/1.9.3-p194/lib/ruby/gems/1.9.1/gems/sass-3.2.3/lib/sass/tree/visitors/to_css.rb: incompatible character encodings: ASCII-8BIT and UTF-8 

什麼問題呢?它如何解決?

+0

可能重複http://stackoverflow.com/questions/5286117/incompatible-character-encodings-ascii -8bit-and-utf-8 – oldergod

回答

3

好吧,我可以修復它加入

encoding = "utf-8" 

的 「config.rb」 文件

+0

還有比「config.rb」文件多,請告訴哪一個?謝謝 – Mahmoud

+0

@Mahmoud將此添加到我的Sass/Compass項目的根目錄中config.rb的頂部對我有用 –

+0

謝謝,在這裏工作! – egermano