Reputation: 13
I send an email (in HTML format) in PHP using the phpmailer library.
My email is displayed correctly on PC and iPhone, no accents or other problems.
But I noticed a concern in content:
Indeed, the body of my email contains the characters "=da". On PC, I see "=da" but on iPhone, these 3 characters are replaced by "Ú".
The problem appears only in the body of my mail. If I display "=da" in the email subject, I see correctly on PC and iPhone.
NB : my code files are in UTF-8 and I make a utf8_decode the content of my mail before sending it (and I remember that I have no worries or other accents).
Upvotes: 1
Views: 660
Reputation: 14222
=xx
, with two hex digits is commonly seen in emails that use 'Quoted Printable' encoding.
Since you're using UTF-8, you won't be using quoted printable encoding, but it sounds like the iPhone may be doing the conversion anyway. This may be a bug in the iPhone email client.
My suggestion would be to switch to quoted printable mode. In phpMailer, you would do it like this:
$mail->Encoding = 'quoted-printable';
Upvotes: 3