Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Cedric Kastner committed Sep 5, 2018
1 parent 390cb3e commit ca68eb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Fetch/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -531,11 +531,11 @@ protected function processStructure($structure, $partIdentifier = null)
}
}

$messageBody = @mb_convert_encoding($messageBody, self::$charset, $parameters['charset']);
$messageBody = @mb_convert_encoding($messageBody, self::$charset, strtoupper($parameters['charset']));
$mb_converted = true;
}
if (!$mb_converted) {
$messageBodyConv = @iconv($parameters['charset'], self::$charset . self::$charsetFlag, $messageBody);
$messageBodyConv = @iconv(strtoupper($parameters['charset']), self::$charset . self::$charsetFlag, $messageBody);

if ($messageBodyConv !== false) {
$messageBody = $messageBodyConv;
Expand Down

0 comments on commit ca68eb8

Please sign in to comment.