I recently install ruby in my computer and when I tried to install sass or compass I encountered this error.
Home@HOME-PC ~
$ gem -v
2.2.2
Home@HOME-PC ~
$ gem install compass
ERROR: While executing gem ... (Encoding::UndefinedConversionError)
U+200F to IBM862 in conversion from UTF-16LE to UTF-8 to IBM862
Home@HOME-PC ~
$ gem install sass
ERROR: While executing gem ... (Encoding::UndefinedConversionError)
U+200F to IBM862 in conversion from UTF-16LE to UTF-8 to IBM862
what caused this error? and how do I fix it?
There is a bug in windows some have encountered https://github.com/rubygems/rubygems/issues/1025
some have reported being able to change the codepage to fix it. From prompt run:
chcp 1252
then do your gem install again