While working with IMAP email headers in PHP , I encountered an issue which is related to encoding of subject line. When I am try mb_decode_mimeheader
(as per the duplicate issue) then I am not getting desired result:
$subject = "=?UTF-8?Q?=e2=99=a3?= Your winning day =?UTF-8?Q?=e2=99=a3?=";
echo mb_decode_mimeheader($subject);
Output:
? Your winning day ?