New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Encoding problem in actionmailer subject #3824
Comments
I can reproduce this issue. I think that this issue is Please let me think :-) |
I think that |
I have tackled this issue. and I have some improvement. Please edit your Gemfile, and
|
It works ! Thank you very much ! |
@tompat thanks your report ! I opened pull request for the |
I'm closing this, since it's not a rails bug. |
When subject is too long (apparently more or less 80 characters), the string is splitted in two lines. If the first line has an UTF-8 characters, it is converted in utf-8, if the second has no UTF-8 characters, it is not converted in UTF-8. The problem is, in this case only, the space between the last word of the first line and the first word of the second line disapears,
Test case:
=== My Email subject: ===
[tag: reset-password] Réinitialisation de votre mot de passe
=== Rails log on email sent (/!\ with exactly the same new line " de passe"): ===
Subject: =?UTF-8?Q?[tag:_reset-password]_R=C3=A9initialisation_de_votre_mot?=
de passe
=== EMail header ===
Subject: =?utf-8?q?_R=C3=A9initialisation_de_votre_motde_passe?=
The text was updated successfully, but these errors were encountered: