Skip to content

Commit

Permalink
Fixes ddeboer#66
Browse files Browse the repository at this point in the history
utf8_encode function encodes ONLY ISO-8859-1 string to UTF-8. Instead of utf8_encode it should be used iconv()
  • Loading branch information
pbrzoski committed Jan 3, 2015
1 parent c3350b2 commit 00bdf7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ddeboer/Imap/Message/Part.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public function getDecodedContent()
break;

case self::ENCODING_QUOTED_PRINTABLE:
$this->decodedContent = \utf8_encode(\quoted_printable_decode($this->getContent()));
$this->decodedContent = \iconv($this->getCharset(), 'UTF-8', \quoted_printable_decode($this->getContent()));
break;

case self::ENCODING_7BIT:
Expand Down

0 comments on commit 00bdf7d

Please sign in to comment.