Bug #55314 [Fbk->Csd]: wrong mb_decode_mimeheader result

From: Date: Mon, 01 Aug 2011 01:53:25 +0000
Subject: Bug #55314 [Fbk->Csd]: wrong mb_decode_mimeheader result
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-162318@lists.php.net to get a copy of this message
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] laruence@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

« previous php.bugs (#162318) next »