When run bundle get invalid byte sequence in US-ASCII

前端 未结 3 820
忘掉有多难
忘掉有多难 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
    
    0 讨论(0)
  • 2020-12-13 05:45
    export LANG=ru_RU.UTF-8
    
    export LC_ALL=ru_RU.UTF-8
    
    0 讨论(0)
  • 2020-12-13 05:47

    In Debian/Ubuntu systems, run:

    $ dpkg-reconfigure locales
    

    And select your locales.

    0 讨论(0)
提交回复
热议问题