[Rails] Re: Mailer template encoding error ( Spanish characters) not valid US-ASCII (obviously) ...
I read this post in forum, lot of info ... thanks
it's solved now ....
http://www.ruby-forum.com/topic/374725
On 17 mar, 19:54, Frederick Cheung <frederick.che...@gmail.com> wrote:
> On Mar 17, 6:07 pm, Erwin <yves_duf...@mac.com> wrote:
>
>
>
> > class Notifier < ActionMailer::Base
> > default :charset => "utf-8"
> > ..
> > mail(:to => destination, :subject => subject, :from => from)
> > do |format|
> > format.text(:content_transfer_encoding => "base64")
> > format.html(:content_transfer_encoding => "base64")
> > end
>
> > but this doesn't get rid of the error.... how & where should I write
> > the encoding information
>
> That's something else, it sets charset header on the outgoing message.
> What ruby 1.9 is complaining about is the encoding of your erb file.
> You need to do what the rails error message says and stick
>
> <%# encoding: utf-8 %>
>
> on the first line of your template (assuming utf-8 is what your
> template is written in)
>
> Fred
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home