0

I just updated Ruby and now I'm getting the following error when trying to start compass:

Encoding::CompatibilityError on line ["28"] of /usr/local/Cellar/ruby/1.9.3-p194/lib/ruby/gems/1.9.1/gems/sass-3.2.3/lib/sass/tree/visitors/to_css.rb: incompatible character encodings: ASCII-8BIT and UTF-8

What's the problem there? How can it be solved?

rauberdaniel
  • 1,017
  • 9
  • 22
  • possible duplicate http://stackoverflow.com/questions/5286117/incompatible-character-encodings-ascii-8bit-and-utf-8 – oldergod Dec 21 '12 at 09:01

1 Answers1

3

Okay, I could fix it adding

encoding = "utf-8"

to the "config.rb" file

rauberdaniel
  • 1,017
  • 9
  • 22
  • there's more than "config.rb" file, kindly would tell which one? thank you – Mahmoud Jul 23 '13 at 12:14
  • @Mahmoud Adding this to the top of the config.rb in the root of my Sass/Compass project worked for me – Oli Studholme Jul 25 '13 at 15:15
  • Followup: if you’re using Grunt, change the Compass task’s `outputStyle` to a different value (`compressed`|`expanded`), save, run, then change back ([Ref](http://stackoverflow.com/questions/19788561/codekit-encodingcompatibilityerror-after-upgrading-to-mavericks)) – Oli Studholme Jan 24 '14 at 01:26