Reputation: 4771
In one of the projects I need to send a letter in Farsi (Arabic). As for the body of the message, I'm converting the Arabic symbols to ASCII code which works like a charm. The problem is with the subject field. Whatever encoding I try to set I always get question marks instead of the text. Could anybody help me with this, please? Here's my code:
$subject = '=?utf-8?B?'.base64_encode(mb_convert_encoding('انصراف از دریافت پیام های اطلاع رسانی', "UTF-8","US-ASCII")).'?=';
Thanks.
Upvotes: 1
Views: 965
Reputation: 15336
Try this
mb_internal_encoding("UTF-8");
$subject_evernote = mb_encode_mimeheader("العربية");
Regards
Upvotes: 1