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!
2009/12/10 Arthur Ccube
<arthurccube-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
> 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
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To unsubscribe from this group, send email to
>
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>
>
--
tommy xiao
E-mail: xiaods(AT)gmail.com
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.