Numbers in emails instead of characters

When an answer is emailed we are seeing this: > Some people have said to me in the past, 1CI don 19t want to talk about money up front in case people begin to negotiate with me 1D 26 Instead of: > Some people have said to me in the past, âI donât want to talk about money up front in case people begin to negotiate with meââ¦.

1 Reply

We believe there's something going wrong in email with the translation of the so-called "smart quotes" from Microsoft applications and with some unicode entities. We're not sure why yet. Are these characters (like the euro symbol in the comment above) displaying correct when shown on the website, but incorrectly when transmitted via email?

Would love that everything was so simple. Specially when lots of magic conversion happens on your back without you being aware of it. There are dozens of emails containing numbers and other funky characters that display well. The code is the same. How do you explain that?

Looking at the email content, it looks like it has gone through an extra encoding step. And this is causing the problem. In the email the â¬ symbol has been replaced by =20AC while it should be just =AC But since = is encoded as =20, it looks like the conversions applied have been: â¬ --> =AC --> =20AC So just removing the second encoding step should fix the problem.

There is only one conversion step. We use the python mail functions directly, and not the django built ins, in order to make some magic possible. There is currently some work being done with the mail functions, and the problem will eventually be detected. But please don't make the assumption that if everything is utf-8 all will be fine.

It was just an idea, this is why I said "maybe"... As I said before if you take a look at the email contents I am pretty sure that the problem is that body has gone through two encodings. Maybe you are not encoding it twice, but at some point it is happening...

Your answer

Hint: You can notify a user about this post by typing @username

Attachments:
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

AnswerHub Docs Site

If you're looking for documentation, check out our documentation library. This collection will help all types of users perform a wide range of actions and gain a better understanding of the AnswerHub platform.