Rails: UTF-8 encoding issue with mailer and text partials

前端 未结 1 1713
自闭症患者
自闭症患者 2021-01-26 18:52

I am building a Rails application and am face of a problem with my text mailer: I can’t find how to make special character (é, è, à, …) to be encoded properly.
It works grea

1条回答
  •  遥遥无期
    2021-01-26 19:02

    I finally found my issue. It was coming from the inky-rb gem which has some problem to understand encoding.

    I just rename my layout (or template) like this:

    # app/views/layouts  
    default.text.inky # => default.text.erb
    

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