【发布时间】:2014-09-19 20:53:50
【问题描述】:
我在 Windows XP 上运行 compass watch my_project。
-
index.scss:@charset "UTF-8"; @import 'partial'; // ... -
_partial.scss:p:before { content: '•'; } -
config.rb:encoding = "utf-8" -
生成
index.css:@charset "UTF-8"; /* line 1, ../sass/_partial.scss */ p:before { content: 'ÔÇó'; } // ...
如何让 Compass/Sass 将部分解释为 UTF-8?在那儿
也许我可以设置一个环境变量来更改默认值
Ruby 使用的字符编码(compass 是一个 Ruby 应用程序)?
【问题讨论】:
-
文件是否真的使用 UTF-8 编码?什么版本的 Ruby?
-
EMACS 的
describe-coding-system说:Coding system for saving this buffer: U -- utf-8-dos (alias: mule-utf-8-dos)Ruby 版本:ruby 1.9.3p362 (2012-12-25) [i386-mingw32]
标签: compass-sass sass