invalid byte sequence in US-ASCII (Ruby 1.9 + rails 2.3.8 + mongodb + mongo_mapper)

后端 未结 6 2060
小蘑菇
小蘑菇 2021-02-04 07:40

My setup is:

linux + Ruby 1.9 + rails 2.3.8 + mongodb + mongo_mapper

I followed http://railscasts.com/episodes/194-mongodb-and-mongomapper, that everything is OK

6条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-04 08:19

    You may correct this error writing this

    export LC_ALL="en_US.UTF-8"
    

    to your ~/.profile, ~/.bash_profile or similar. It works like a charm.

提交回复
热议问题