Edit report at https://bugs.php.net/bug.php?id=55314&edit=1
ID: 55314 User updated by: donglijun at msn dot com Reported by: donglijun at msn dot com Summary: wrong mb_decode_mimeheader result -Status: Feedback +Status: Closed Type: Bug Package: mbstring related Operating System: linux PHP Version: 5.3.6 Block user comment: N Private report: N New Comment: The text is not encoded by mb_encode_mimeheader, but generated by a python sendmail script. I checked the decoded string again and found that the source string's charset may be GB2312 and was marked UTF-8 by encoder. So i choose to close this bug and sorry for this mistake. Previous Comments: ------------------------------------------------------------------------ [2011-07-29 07:55:41] larue...@php.net hmm, did you get "'=?UTF-8?B?cHl0aG9uILLiytTTyrz+?='" by mb_encode_mimeheader, if not plz check the original text before encoding. after you double check it, if you still believe this is a bug of PHP, plz supply the encoding script, then change the bug status from Feedback to Open again. ------------------------------------------------------------------------ [2011-07-29 07:28:54] donglijun at msn dot com Description: ------------ Using mb_decode_mimeheader to decode a mime string, but got a wrong result Test script: --------------- <?php mb_internal_encoding('UTF-8'); var_dump(mb_decode_mimeheader('=?UTF-8?B?cHl0aG9uILLiytTTyrz+?=')); Expected result: ---------------- string(15) "python æµè¯é®ä»¶" Actual result: -------------- string(9) "python å§" ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=55314&edit=1