I spent more than half a day on this - just trying to get an email message that looks normal. But international characters appear as HTML_Entities when a mailbox ends up in your inbox.
For example: Tydzień o Jedność
Shows how: Tydzień o Jedność
I am already encoding an email subject for UTF-8:
$this->subject = "=?UTF-8?B?" . base64_encode($this->subject) . "?=";
When I receive an email (Gmail), the header displays as:
Subject: =?UTF-8?B?VHlkemllJiMzMjQ7IG8gSmVkbm8mIzM0NzsmIzI2Mzs=?=
So, it is encoded correctly. But for some reason, Gmail still displays the subject with HTML_Entities.
Any ideas?
See code: SMTP mail class
source
share