Trying to get Rails to work with Ruby 1.9 again. Kept getting the error

ArgumentError (invalid byte sequence in US-ASCII):

Sticking this at the top of environment.rb seems to have fixed it:

if RUBY_VERSION =~ /1.9/
Encoding.default_external = Encoding::UTF_8
Encoding.default_internal = Encoding::UTF_8
end

Found the solution here.

4 thoughts on “

  1. Jim Young?

    I’m trying to get in touch with you to ask a kind of interesting favor/question about a problem I ran into with FFM… Haha

    Could you take a few minutes to listen? :]

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 )

Connecting to %s