File: IMAPProtocol.php.utf7

package info (click to toggle)
php-net-imap 1.1.0beta2-1.1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 300 kB
  • ctags: 760
  • sloc: php: 3,865; xml: 321; makefile: 4
file content (35 lines) | stat: -rw-r--r-- 1,809 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Index: php-net-imap-1.1.0beta2/Net_IMAP-1.1.0beta2/IMAPProtocol.php
===================================================================
--- php-net-imap-1.1.0beta2.orig/Net_IMAP-1.1.0beta2/IMAPProtocol.php	2008-03-26 02:02:06.000000000 -0300
+++ php-net-imap-1.1.0beta2/Net_IMAP-1.1.0beta2/IMAPProtocol.php	2008-03-26 02:03:04.000000000 -0300
@@ -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  = '';
Index: php-net-imap-1.1.0beta2/package.xml
===================================================================
--- php-net-imap-1.1.0beta2.orig/package.xml	2008-03-26 02:03:14.000000000 -0300
+++ php-net-imap-1.1.0beta2/package.xml	2008-03-26 02:03:47.000000000 -0300
@@ -42,7 +42,7 @@
    <file baseinstalldir="Net" md5sum="da2c67c2478b014e2b5b2fd5e82180e7" name="tests/testAll.php" role="test" />
    <file baseinstalldir="Net" md5sum="2eb9e1da8d16a6f5b06bc791540f0b02" name="tests/testIMAP.php" role="test" />
    <file baseinstalldir="Net" md5sum="1a90d6828df4fe087fcfec1463a1e5f7" name="IMAP.php" role="php" />
-   <file baseinstalldir="Net" md5sum="1999c17e181c6b269db6fd42131f9056" name="IMAPProtocol.php" role="php" />
+   <file baseinstalldir="Net" md5sum="baa464d3de9579948ad14355d65d6e2f" name="IMAPProtocol.php" role="php" />
   </dir>
  </contents>
  <dependencies>