From 989e77b7580488c1a29d0800b9a2b9518c860bdc Mon Sep 17 00:00:00 2001 From: Guillaume RODRIGUEZ Date: Sat, 27 Sep 2014 19:07:47 +0200 Subject: [PATCH] UTF-8 Translation --- src/Fetch/Attachment.php | 4 ++-- src/Fetch/Message.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Fetch/Attachment.php b/src/Fetch/Attachment.php index 3b7c4a7..613afda 100644 --- a/src/Fetch/Attachment.php +++ b/src/Fetch/Attachment.php @@ -93,9 +93,9 @@ class Attachment $parameters = Message::getParametersFromStructure($structure); if (isset($parameters['filename'])) { - $this->filename = $parameters['filename']; + $this->filename = imap_utf8($parameters['filename']); } elseif (isset($parameters['name'])) { - $this->filename = $parameters['name']; + $this->filename = imap_utf8($parameters['name']); } $this->size = $structure->bytes; diff --git a/src/Fetch/Message.php b/src/Fetch/Message.php index d5aef7a..a71bc75 100755 --- a/src/Fetch/Message.php +++ b/src/Fetch/Message.php @@ -220,7 +220,7 @@ class Message return false; - $this->subject = isset($messageOverview->subject) ? $messageOverview->subject : null; + $this->subject = isset($messageOverview->subject) ? imap_utf8($messageOverview->subject) : null; $this->date = strtotime($messageOverview->date); $this->size = $messageOverview->size;