imap_utf8 function incorrectly convert with gbk encode
Bug #137475 reported by
wlx
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(
echo "\n";
echo iconv_mime_
?>
The second line is the correctly output.
To post a comment you must log in.
If possible can you try a hardy livecd and try to reproduce?
Thanks
chuck