Skip to content

Commit

Permalink
Merge 7274b72 into 3fbee96
Browse files Browse the repository at this point in the history
  • Loading branch information
bakicdj committed Oct 20, 2015
2 parents 3fbee96 + 7274b72 commit c89ef41
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Fetch/Message.php
Expand Up @@ -524,10 +524,8 @@ protected function processStructure($structure, $partIdentifier = null)
$mb_converted = false;
if (function_exists('mb_convert_encoding')) {
if (!in_array($parameters['charset'], mb_list_encodings())) {
if ($structure->encoding === 0) {
if (empty($structure->encoding)) {
$parameters['charset'] = 'US-ASCII';
} else {
$parameters['charset'] = 'UTF-8';
}
}

Expand Down

0 comments on commit c89ef41

Please sign in to comment.