X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=banana%2Fpost.inc.php;h=60f29868e689158c4465e6cbfee057d8cbcfee57;hb=382606fb71a6b0192c8b40d362b12d6b017ac144;hp=340d2187dbf365e41bd87e0ac68ebcb715cbbc7d;hpb=ad7b9c56adeb270f613f2bec1c0f0de26e852e46;p=banana.git diff --git a/banana/post.inc.php b/banana/post.inc.php index 340d218..60f2986 100644 --- a/banana/post.inc.php +++ b/banana/post.inc.php @@ -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]); } }