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
Non english characters on email templates cause escaping #2086
Comments
This is weird and I have written templates in portuguese and I haven't seen it before. It makes me think it is not a Devise issue, but a Rails one. If you put those characters in any other template, not necessarily a Devise one, does the issue still happen? |
Sorry, for the delay, I went on vacation :) I've done the tutorial from rails casts 206 and sent emails with and without latin chars, in text and html without any escaping. With Devise If I write the word Olá, I get the email get's like this: http://pastie.org/5064730 Using Rails 3.2.8 |
What is the template name? Can you provide an app that reproduces the error? José Valim |
The templates are: When I get home I will try to do an app with the problem. Thanks :) |
Here it is a simple test: As you can see in with the last commit, just adding "Olá" breaks the email by sending the url escaped like so: Without the Olá, everything looks fine: What do you think? Thanks for looking at this José :) |
Hey @victormartins, before I give it a shot, would you mind adding a mailer template to the same app but without using Devise that works just fine as you said previously? Thanks! |
Hello, Well now I'm completed lost, this really seems a rails configuration issue. I've noticed that now those templates have: While Devise gets: I don't know what I did different at home to send the email email with the latim characters, because in both situations I just followed Ryan Bates tutorial. If you want to give it a try do rake db:seed and enter with Then on the top of the page click " Say Hello" and in the console you will see the mailer sending the email. |
How do they look like when you access them in your gmail? |
Brrr shame on me 👎 .... just tested it on my heroku app and on gmail it looks fine. Sorry for wasting your time :( |
When using non english characters on the confirmation email, like "Olá" the email gets escaped and the token seems to get invalid.
Someone posted this problem like a year ago: http://stackoverflow.com/questions/4793504/rails-3-and-devise-escaping-mailer-templates
Is solution is ok, but is there a way to prevent devise to escape the characters?
The text was updated successfully, but these errors were encountered: