Public bug reported:

Using Ubuntu Feisty server, with php5-imap 5.1.2-1ubuntu1 package.
imap_utf8 function incorrectly convert with  gbk encode mimestring, the gb2312 
encode is no problem.
and iconv_mime_decode function can correctly convert the encoding.

Reproduce code:

<?php
echo imap_utf8("=?GBK?B?wbzP/A==?=");
echo "\n";
echo iconv_mime_decode("=?GBK?B?wbzP/A==?=",0,"UTF-8");
?>
 
The second line is the correctly output.

** Affects: php5 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
imap_utf8 function incorrectly convert with gbk encode
https://bugs.launchpad.net/bugs/137475
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to