Api - Set default charset for mail to utf-8, overriding Horde's us-ascii

This commit is contained in:
nathangray 2019-02-22 10:42:21 -07:00
parent fe64572ec9
commit 78028dfbda

View File

@ -7254,6 +7254,9 @@ class Mail
// Check and fix long header fields
$message = self::_checkAndfixLongHeaderFields($message);
// Default charset to utf-8, not us-ascii which Horde chooses
Horde_Mime_Part::$defaultCharset = 'utf-8';
$structure = Horde_Mime_Part::parseMessage($message);
//error_log(__METHOD__.__LINE__.'#'.$structure->getPrimaryType().'#');
if ($force8bitOnPrimaryPart&&$structure->getPrimaryType()=='text')