View Issue Details

IDProjectCategoryView StatusLast Update
0015536phplist applicationEmailpublic29-04-11 22:03
Reporterosarrat 
PrioritynormalSeveritymajorReproducibilityhave not tried
Status resolvedResolutionfixed 
Product Version2.10.12 
Target VersionFixed in Version2.10.14 
Summary0015536: Wrong encoding for text version through PhpMailer
DescriptionUTF-8 was forced to encode the text version of the body of emails sent through PHPMailer.

See attached patch file for more information.

I hope it will be useful to someone.
TagsNo tags attached.

Relationships

child of 0001644 resolvedmichiel Subject error with UTF-8 encode in Traditional Chinese 

Activities

osarrat

31-08-10 11:57

reporter  

class.phplistmailer.php.patch (1,529 bytes)
--- C:/Users/OSarrat/Desktop/class.phplistmailer.php.old	Tue Aug 31 12:55:58 2010
+++ C:/Users/OSarrat/Desktop/class.phplistmailer.php	Tue Aug 31 12:35:35 2010
@@ -85,18 +85,22 @@
     function add_text($text) {
       if (!$this->Body) {
         $this->IsHTML(false);
-        $this->Body = html_entity_decode($text ,ENT_QUOTES, 'UTF-8' ); #$text;
+#        $this->Body = html_entity_decode($text ,ENT_QUOTES, 'UTF-8' ); #$text;
+        $this->Body = html_entity_decode($text ,ENT_QUOTES, getConfig("text_charset") ); #$text;
 #        $this->Body = $text;
        } else {
-        $this->AltBody = html_entity_decode($text ,ENT_QUOTES, 'UTF-8' );#$text;
+#        $this->AltBody = html_entity_decode($text ,ENT_QUOTES, 'UTF-8' );#$text;
+        $this->AltBody = html_entity_decode($text ,ENT_QUOTES, getConfig("text_charset") );#$text;
       }
     }
 
     function append_text($text) {
       if ($this->AltBody) {
-        $this->AltBody .= html_entity_decode($text ,ENT_QUOTES, 'UTF-8' );#$text;
+#        $this->AltBody .= html_entity_decode($text ,ENT_QUOTES, 'UTF-8' );#$text;
+        $this->AltBody .= html_entity_decode($text ,ENT_QUOTES, getConfig("text_charset") );#$text;
       } else {
-        $this->Body .= html_entity_decode($text."\n" ,ENT_QUOTES, 'UTF-8' );#$text;
+#        $this->Body .= html_entity_decode($text."\n" ,ENT_QUOTES, 'UTF-8' );#$text;
+        $this->Body .= html_entity_decode($text."\n" ,ENT_QUOTES, getConfig("text_charset") );#$text;
       }
     }
 

michiel

29-04-11 22:03

manager   ~0051242

rev2689