no more encoding issues with banana. oh yeah!
authorx2000habouzit <x2000habouzit>
Sun, 26 Sep 2004 15:53:39 +0000 (15:53 +0000)
committerx2000habouzit <x2000habouzit>
Sun, 26 Sep 2004 15:53:39 +0000 (15:53 +0000)
include/post.inc.php

index 463ff93..b232f73 100644 (file)
@@ -35,6 +35,9 @@ class Post {
       (preg_match("/quoted-printable/",$this->headers->contentencoding))) {
         $this->body = quoted_printable_decode($this->body);
       }
+      if(preg_match('!charset=([^;]*);!', $this->headers->contenttype, $matches)) {
+       $this->body = iconv($matches[1], 'iso-8859-1', $this->body);
+      }
   }
 }