Hi,
utf8 emails come in with subject strings that look like this:
=?utf-8?B?0J/RgNC40LLQtdGC?=
I'm in a situation where it's necessary to decode it. The function for the task apparently is mb_decode_mimeheader
http://ca.php.net/mb_decode_mimeheader
Unfortunately, attempting to decode the string above produces only queston marks!
$str = "=?utf-8?B?0J/RgNC40LLQtdGC?=";
echo mb_decode_mimeheader( $str );
To further verify the issue, where the expected result of the following code is: Привет, it outputs question marks still!
$str = mb_encode_mimeheader( "Привет" );
echo mb_decode_mimeheader( $str );
Anyone know how to successfully decode these strings?