0

I have recently started to see this error, and I cant work out what has caused it as I havent changed the css files recentlyenter image description here

Boss Nass
  • 3,384
  • 9
  • 48
  • 90
  • Post your `RAILS_APP/app/assets/stylesheets/application.css`. You mistakenly added some bad character in there. โ€“ Kulbir Saini Jul 19 '12 at 10:32
  • Check encoding of your SCSS files. http://stackoverflow.com/questions/539294/how-do-i-determine-file-encoding-in-osx [Converting the encoding of a text file (Mac OS X)][1] [1]: http://superuser.com/questions/151981/converting-the-encoding-of-a-text-file-mac-os-x โ€“ rogal111 Jul 19 '12 at 10:33
  • when i check my filetypes im getting `Paul-McGuanes-MacBook:stylesheets paulmcguane$ file -I application.css application.css: text/x-c; charset=us-ascii Paul-McGuanes-MacBook:stylesheets paulmcguane$ file -I icons.css icons.css: text/x-c; charset=us-ascii Paul-McGuanes-MacBook:stylesheets paulmcguane$ file -I admin.css.scss admin.css.scss: text/x-c++; charset=us-ascii` โ€“ Boss Nass Jul 19 '12 at 10:37

1 Answers1

1

You need to convert your SCSS file to UTF-8; if it contains any characters (รข, in this case) outside the range of \x00-\x80 then it can't be implicitly converted from ASCII.

Any decent editor should be able to convert it to UTF-8, or failing that use iconv.

Of course, you can also just remove the offending character, but I presume it's there for a good reason.

furq
  • 5,648
  • 3
  • 16
  • 21