ArgumentError: invalid byte sequence in US-ASCII

Standard

Installing some gem and you got this error?

I was trying to install Devise:

Using devise (2.1.2) from https://github.com/plataformatec/devise.git (at master)
ArgumentError: invalid byte sequence in US-ASCII
An error occured while installing devise (2.1.2), and Bundler cannot continue.
Make sure that `gem install devise -v ‘2.1.2’` succeeds before bundling.

Solution:

export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export LANGUAGE=en_US.UTF-8

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s