UTF-8 and live.com (hotmail) issue
It is necessary to know first of all that: the problems with e-mails sent with UTF8 encoding is not your, but that of the system of the addressee which does not manage correctly 8 bits, as case of “Mail Subject” in “LIVE.com” (hotmail).
The solution is encoding the data of the message in MIME base64 :
Example :
mail($emailto,"=?UTF-8?B?".base64_encode($subject)."?=",$message,$headers);
October 23rd, 2009 in
Development, Tricks | tags: function mail() encoding, hotmail utf-8, live.com utf-8, mail() utf-8, php mail utf-8 |
1 Comment