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

后端 未结 6 2085
小蘑菇
小蘑菇 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条回答
  •  旧时难觅i
    2021-02-04 08:18

    cd $HOME
    vi .bashrc
    

    add locale conf below:

    export LANG="en_US.UTF-8"
    export LC_ALL="en_US.UTF-8"
    export LC_CTYPE=en_US.UTF-8
    

    save and run: source ~/.bashrc

    Everything is okay~

提交回复
热议问题