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);