emails with funny characters =e9 =3d
Hello,
Occasionally one of customers sends emails to all of their customers. The most recent was a job offer. The messages did not display correctly on a number of machines. It appeared as follows: Les personnes int=E9ress=E9es =E0 poser leur candidature ou =E0 obtenir de plus amples renseignements sur le poste, sont pri=E9es de communiquer If you know french, or any western language with accents, you'll realize that =E0 should be à and =E9 should be é. I believe the problem lies in the headers, there should probably be a header that says that the content encoding is. I am using Pear::Mail to send the messages. I thought Pear would do this itself, anyone know what header needs to be modified/added/deleted so that these emails display correctly? Do I pass it in the headers or is there a function in Pear to do this? Thanks, David |
Upon closer inspection of the email I found that the charset is set.
So why would so many clients display the wrong information? --=_e2b8a00f81d023c6dac04e7a3c50ef38 Content-Type: text/html; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable |
I also tried using htmlentities, but I guess email clients don't like é and others. It was a lot worse like that.
|
This is what the subject header looks like if I use German unlauts in Mozilla Thunderbird. Note that the encoding is specified in the header itself, maybe your headers should look similar:
Code:
Subject: =?ISO-8859-15?Q?=F6=E4=FC?= |
Quote:
My subject also contains a similiar message, except it uses ISO-8859-1, and the subject appears correctly. It's really just the body that is messed up. David |
All times are GMT -5. The time now is 07:50 PM. |