X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=banana%2Fnntpcore.inc.php;h=7579c2acee46b19cb4eab4567d1191c74c8ed31d;hb=56b35f9c2b6945a893e01756931634969fc57460;hp=5d8bc63c86bb55ef237a1d1af2fb4ffedd9cdede;hpb=a3c90095a1920b1d39cb1e8ffd892ba407351ca6;p=banana.git diff --git a/banana/nntpcore.inc.php b/banana/nntpcore.inc.php index 5d8bc63..7579c2a 100644 --- a/banana/nntpcore.inc.php +++ b/banana/nntpcore.inc.php @@ -79,7 +79,11 @@ class BananaNNTPCore public function lastError() { - return $this->lasterrortext; + if (!is_utf8($this->lasterrortext)) { + return utf8_encode($this->lasterrortext); + } else { + return $this->lasterrortext; + } } public function backtrace()