Rails View Encoding Issues

后端 未结 2 2065
粉色の甜心
粉色の甜心 2021-01-06 01:02

I\'m using Ruby 2.0 and Rails 3.2.14. My view is littered several UTF-8 characters, mainly currency symbols like บาท and د.إ etc. I noticed some

(ActionView         


        
2条回答
  •  [愿得一人]
    2021-01-06 01:38

    That error message usually occurs when you try to concatenate strings with different character encodings.

    Is your database set to use UTF-8 as well?

    If not, you could have a problem when you try to insert the non-UTF8 values into your UTF-8 template.

提交回复
热议问题