ยค thing + #294
[banana.git] / banana / post.inc.php
index 340d218..60f2986 100644 (file)
@@ -44,7 +44,8 @@ class BananaPost
         }
 
         if (preg_match('!charset=([^;]*)\s*(;|$)!', $this->headers['content-type'], $matches)) {
-            $this->body = iconv($matches[1], 'iso-8859-15', $this->body);
+            require_once 'banana/misc.inc.php';
+            $this->body = to_html($this->body, $matches[1]);
         }
     }