From: Craig Andrews Date: Wed, 29 Jul 2009 02:22:07 +0000 (-0400) Subject: Handle UTF-8 encoded text in emails. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5aa303320b4e57f5296eccba5bba7134cc12503f;p=quix0rs-gnu-social.git Handle UTF-8 encoded text in emails. Thanks to jaakko for pointing this out! http://identi.ca/notice/7169471 --- diff --git a/scripts/maildaemon.php b/scripts/maildaemon.php index a4003b6b26..9b3628b863 100755 --- a/scripts/maildaemon.php +++ b/scripts/maildaemon.php @@ -301,7 +301,7 @@ class MailerDaemon $this->extract_part($parsed,$msg,$attachments); - return array($from, $to, $msg, $attachments); + return array($from, $to, utf8_encode($msg), $attachments); } function extract_part($parsed,&$msg,&$attachments){