Hi all,
I’m struggling with an issue and I need assistance:
I need to convert HTML encoded text to mime header encoding using PHP, but it’s not working for me.
Original text in Hebrew:
הודעה בעברית
HTML Entities text (I replaced the & by _ for it to be properly displayed here):
#1492;#1493;#1491;#1506;#1492; #1489;#1506;#1489;#1512;#1497;_#1514;
Mime encoded text by Thunderbird (correct):
=?UTF-8?B?15TXldeT16LXlCDXkdei15HXqNeZ16o=?=
Mime encoded text by the following PHP function (incorrect):[php]mb_encode_mimeheader(html_entity_decode($name, ENT_NOQUOTES, ‘UTF-8’), “UTF-8”, “B”)[/php]
=?UTF-8?B?w5fClMOXwpXDl8KTw5fCosOXwpQgw5fCkcOXwqLDl8KRw5fCqMOXwpnDl8Kq?=
Can anyone identify why my function doesn’t generate the correct result?
Thanks a lot,
David