handle utf-16 plain text attachments

This commit is contained in:
Klaus Leithoff 2011-11-10 15:19:12 +00:00
parent f9f31ce17e
commit 88be4bea46

View File

@ -1248,6 +1248,10 @@
default:
// it is either not encoded or we don't know about it
}
if ($structure->type === 'TEXT' && isset($structure->parameters['CHARSET']) && stripos('UTF-16',$structure->parameters['CHARSET'])!==false)
{
$attachment = translation::convert($attachment,$structure->parameters['CHARSET'],self::$displayCharset);
}
$attachmentData = array(
'type' => $structure->type .'/'. $structure->subType,