I''m trying to send an HTML email with Rails so I have a mailer''s view with the format .html.haml. My email is written in French so it contains accentuated characters. In the terminal, the server shows me the following: ----------- Message-ID: <4e61088339572_467e3ffda3c5c8185d2-VeRvIlQq8ZeWgft6EYmifWZHpeb/A1Y/@public.gmane.org> Subject: =?UTF-8?Q?R=C3=A9ponse_=C3=A0_un_de_vos_commentaires_sur_Syrinxoon? Tuts Mime-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <!DOCTYPE html> <html> <head> <title>R=C3=A9ponse =C3=A0 un de vos commentaires sur Syrinxoon Tuts</title> <link href=3D''http://localhost:3000/assets/application.css'' media=3D''all'' rel=3D''stylesheet'' type=3D''text/css''> </head> <body> <div class=3D''topbar''> <div class=3D''fill''> <div class=3D''container''> <h3> <a href=3D"/" id=3D"logo">Syrinxoon Tuts</a> </h3> </div> </div> </div> ... ---------- As you can see, all special characters are replaced with weird stuff and = is replaced with =3D. I''ve read in my searches that = is a special character for the quoted-printable enconding so I''ve tried to replace the encoding with base64 but when I did it, my email was just a little string of weird characters (little string = ~20-30 characters) So someone could help me to solve this issue? I''m using Rails 3.1. Thank you. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/pr2M4oMLLkQJ. 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.
On Sep 2, 7:22 pm, Nathan Le Ray <oyok...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I''m trying to send an HTML email with Rails so I have a mailer''s view with > the format .html.haml. > > My email is written in French so it contains accentuated characters. > > In the terminal, the server shows me the following: > > ----------- > > Message-ID: <4e61088339572_467e3ffda3c5c8185d2-VeRvIlQq8ZeWgft6EYmifWZHpeb/A1Y/@public.gmane.org> > Subject: =?UTF-8?Q?R=C3=A9ponse_=C3=A0_un_de_vos_commentaires_sur_Syrinxoon?> Tuts > Mime-Version: 1.0 > Content-Type: text/html; > charset=UTF-8 > Content-Transfer-Encoding: quoted-printable > > <!DOCTYPE html> > <html> > <head> > <title>R=C3=A9ponse =C3=A0 un de vos commentaires sur Syrinxoon Tuts<This actually looks normal, given that the Content-Transfer encoding is quoted-printable. =C3=A9 is quoted printable speak for the pair of bytes 0xC3, 0xA9, which is the utf8 sequence for acute. Because = is special in this encoding scheme, any literal = has to be encoded as =3D. Is your mail client not displaying this properly? Fred> /title> > <link href=3D''http://localhost:3000/assets/application.css''media=3D''> all'' rel=3D''stylesheet'' type=3D''text/css''> > </head> > <body> > <div class=3D''topbar''> > <div class=3D''fill''> > <div class=3D''container''> > <h3> > <a href=3D"/" id=3D"logo">Syrinxoon Tuts</a> > </h3> > </div> > </div> > </div> > ... > > ---------- > > As you can see, all special characters are replaced with weird stuff and > is replaced with =3D. > > I''ve read in my searches that = is a special character for the > quoted-printable enconding so I''ve tried to replace the encoding with base64 > but when I did it, my email was just a little string of weird characters > (little string = ~20-30 characters) > > So someone could help me to solve this issue? > > I''m using Rails 3.1. > > Thank you.-- 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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
I did not have tried to display it in my mails client because I''m still in development. You think the client will not be disturbed by this? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/mZng3d6-IjgJ. 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.
On Sep 3, 1:29 am, Nathan Le Ray <oyok...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I did not have tried to display it in my mails client because I''m still in > development. > You think the client will not be disturbed by this?I don''t believe so, but you should definitely try that since it''s what your users will be doing. By the way, the mailcatcher gem is pretty good for viewing emails sent in development) 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org 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.
I will investigate that. Thank you Frederick. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/zZZ3y9SGP6kJ. 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.