handle utf-16 plain text attachments - now using translation::convert

This commit is contained in:
Klaus Leithoff 2011-11-10 15:18:10 +00:00
parent 135a4f6501
commit 145dcc6d02

View File

@ -1491,7 +1491,7 @@ class felamimail_bo
}
if ($structure->type === 'TEXT' && isset($structure->parameters['CHARSET']) && stripos('UTF-16',$structure->parameters['CHARSET'])!==false)
{
$attachment = mb_convert_encoding($attachment,self::$displayCharset,$structure->parameters['CHARSET']);
$attachment = translation::convert($attachment,$structure->parameters['CHARSET'],self::$displayCharset);
}
$attachmentData = array(