ActionMail Charset for email body

Hi Guys,

I succeeded in sending email with content-type big5. However, the content of the email is still utf-8!

I've tried to call the

t(:my_sentence).encode('big5')

or my content, but there is

"invalid byte sequence in UTF-8"

errors in a lot of places starting from actionmailer/lib/utils.rb (text.to_s.gsub(/\r\n?/, "\n"))

and it stop me from hacking the gems.

Any help is appreciated! Arthur

according to http://api.rubyonrails.org/classes/ActionMailer/Base.html default_charset - The default charset used for the body and to encode the subject. Defaults to UTF-8. You can also pick a different charset from inside a method with charset .

[](http://api.rubyonrails.org/classes/ActionMailer/Base.html#M001564) ActionMailer::Base.charset = 'big5' have a try!