When I want to install sass and compass, I get this message. Can someone help me?
Microsoft Windows [version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Tous droits réservés.
C:\Users\Bk>gem install sass
ERROR: While executing gem (Encoding::UndefinedConversionError)
U+2019 to CP850 in conversion from UTF-16LE to UTF-8 to CP850
Open up a command prompt and type:
chcp 1252
Then run the installer again:
gem install sass
Unfortunately there's a known issue in some versions of Ruby regarding this. See here
Here is what worked for me:
modified line 70 of registry.rb (in your ruby installation folder).
Change this line:
LOCALE = Encoding.find(Encoding.locale_charmap)
to this one:
LOCALE = Encoding::UTF_8
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With