Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Decode.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public static function splitMessage($message, &$headers, &$body, $EOL = Mime::LI
@list($headers, $body) = @preg_split("%([\r\n]+)\\1%U", $message, 2);
}

$headers = iconv_mime_decode_headers($headers, ICONV_MIME_DECODE_CONTINUE_ON_ERROR);
$headers = iconv_mime_decode_headers($headers, ICONV_MIME_DECODE_CONTINUE_ON_ERROR, 'UTF-8');

if ($headers === false) {
// an error occurs during the decoding
Expand Down Expand Up @@ -237,6 +237,6 @@ public static function splitHeaderField($field, $wantedPart = null, $firstName =
*/
public static function decodeQuotedPrintable($string)
{
return iconv_mime_decode($string, ICONV_MIME_DECODE_CONTINUE_ON_ERROR);
return iconv_mime_decode($string, ICONV_MIME_DECODE_CONTINUE_ON_ERROR, 'UTF-8');
}
}

0 comments on commit 8c2b9ff

Please sign in to comment.