When run bundle get invalid byte sequence in US-ASCII

前端 未结 3 827
忘掉有多难
忘掉有多难 2020-12-13 05:06

I\'m trying to deploy my Rails 3.0 app. I use rvm and ruby 1.9.2 (p 180 or p 290 - no difference) on the FreeBSD production server. When I run bundle command, I get this ex

3条回答
  •  不知归路
    2020-12-13 05:45

    For me works, adding this lines to the top of Gemfile

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

提交回复
热议问题