Req #17071 [Com]: Cyrillic

From: Date: Fri, 11 Jun 2010 03:54:24 +0000
Subject: Req #17071 [Com]: Cyrillic
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-3921@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=17071&edit=1 ID: 17071 Comment by: midget@debian.org Reported By: ivan at iordanov dot net Summary: Cyrillic Status: Open Type: Feature/Change Request Package: Net_IMAP Package Version: 1.1.0 PHP Version: 5.3.0 Roadmap Versions: New Comment: Index: php-net-imap-1.1.0/Net_IMAP-1.1.0/IMAPProtocol.php =================================================================== --- php-net-imap-1.1.0.orig/Net_IMAP-1.1.0/IMAPProtocol.php 2010-06-11 04:52:28.509442171 +0200 +++ php-net-imap-1.1.0/Net_IMAP-1.1.0/IMAPProtocol.php 2010-06-11 04:53:37.810444087 +0200 @@ -3524,7 +3524,7 @@ } if (function_exists('mb_convert_encoding')) { - return mb_convert_encoding($str, 'UTF7-IMAP', 'ISO-8859-1'); + return mb_convert_encoding($str, 'UTF7-IMAP', 'UTF8'); } $encoded_utf7 = ''; @@ -3610,7 +3610,7 @@ //return imap_utf7_decode($str); if (function_exists('mb_convert_encoding')) { - return mb_convert_encoding($str, 'ISO-8859-1', 'UTF7-IMAP'); + return mb_convert_encoding($str, 'UTF8', 'UTF7-IMAP'); } $base64_part = ''; Previous Comments: ------------------------------------------------------------------------ [2010-02-06 13:51:43] ivan Description: ------------ When receiving cyrillic text (specially for mailbox listing), the text is replaced by question marks (?). Solution is to replace ISO-8859-1 with UTF-8 at line 3527 and 3613 at file IMAPProtocol.php Best wishes, Ivan ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=17071&edit=1

« previous php.pear.bugs (#3921) next »