Error: Incompatible character encodings: UTF-8 and ASCII-8BIT

前端 未结 2 1148
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-05 14:21

I got the error incompatible character encodings: UTF-8 and ASCII-8BIT, when the view found in the database some characters like: ñ, á, é, etc.

My envir

2条回答
  •  长情又很酷
    2021-01-05 14:42

    In the file boot.rb, I added this line:

    ENV['NLS_LANG'] = 'AMERICAN_AMERICA.UTF8'
    

    Whit this I solved my problem.

提交回复
热议问题