imap_utf8 function incorrectly convert with gbk encode

Bug #137475 reported by wlx
2
Affects Status Importance Assigned to Milestone
php5 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

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.

Revision history for this message
Chuck Short (zulcss) wrote :

If possible can you try a hardy livecd and try to reproduce?

Thanks
chuck

Changed in php5:
status: New → Incomplete
Revision history for this message
wlx (wangliangxu) wrote :

There is no problem in ubuntu gutsy.

Revision history for this message
Chuck Short (zulcss) wrote :

Thanks for the testing.

Regards
chuck

Changed in php5:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.