W
W
webpixel2014-05-18 18:42:09
ruby
webpixel, 2014-05-18 18:42:09

SASS issue with @charset "utf-8";

Hello! I've been running into a nasty bug in SASS for a long time when compiling to CSS:
main.scss :

@charset "utf-8";

@import
  "normalize",
  "mixins",
  "base",
  "media";

So, in the final main.css file, there is no line '@charset "utf-8";', please tell me how did you solve this problem?
My setup is MacOS X 10.9.3 / Ruby 2.1.2 (Rbenv) / SASS 3.3.7.
Thank you very much for your attention!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
webpixel, 2014-05-19
@webpixel

I do not know where the previous answers have gone, in general, thanks to @sim3x for the tip.
And actually, there is no problem, it is enough to place any html-character in any *.scss file, for example  , even if only in a comment, and SASS will automatically add '@charset "UTF-8";' to the compiled .css file.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question