Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gem install error (sass compass)

Tags:

ruby

gem

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
like image 491
Guillaume de Pierpont Avatar asked Oct 01 '14 12:10

Guillaume de Pierpont


2 Answers

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

like image 85
Anthony Avatar answered Oct 06 '22 10:10

Anthony


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
like image 32
vlio20 Avatar answered Oct 06 '22 10:10

vlio20