i've been using compass (sass) grunt-contrib-compass on ruby 1.8 without problems. app not ruby app: folder jade/js/scss (...grunt...) => html/js/css.
after installing , using ruby 2.0.0 rvm, encoding config seems have changed since swedish characters å
, ä
, ö
in .scss file give invalid us-ascii character
-error when running grunt compass
.
where set encoding property? in ruby install path? in compass install path? in application path?
the sass documentation @ says:
encodings
when running on ruby 1.9 , later, sass aware of character encoding of documents. default, sass assumes stylesheets encoded using whatever coding system operating system defaults to. many users utf-8, de facto standard web. users, though, may more local encoding.
if want use different encoding stylesheet operating system default, can use @charset declaration in css. add @charset "encoding-name"; @ beginning of stylesheet (before whitespace or comments) , sass interpret given encoding. note whatever encoding use, must convertible unicode.
if using macos or linux, can see , change system encoding running locale
:
locale lang="en_us.utf-8" ...
you try setting encoding way (see man local
). or try advice in second paragraph: add @charset 'utf-8';
line @ start of sass file.
Comments
Post a Comment