Answer the question
In order to leave comments, you need to log in
Rails 3.1. Problem with UTF-8 in sass files?
Many rails are already familiar with the notorious “Invalid US-ASCII character” ruby problem in rb files. It is solved with the help of a magic comment # encoding: utf-8
. Sass support has appeared in the new rails, the problem has now been transferred there, but one thing is unclear, where to put the magic comment now? I tried in the scss file, and in the view, and in the controller, and in general, wherever you can put it, and nothing helped.
Invalid US-ASCII character "\xE2"<br/>
(in .../app/assets/stylesheets/application.css.scss)<br/>
<br/>
Extracted source (around line #5):<br/>
<br/>
5: <%= stylesheet_link_tag "application" %><br/>
6: <%= javascript_include_tag "application" %><br/>
7: <%= yield :head %><br/>
8: <%= csrf_meta_tags %><br/>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question