mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
parse windows 1256 encoding type in email to fax (#7183)
This commit is contained in:
@@ -47,7 +47,11 @@ function parse_message_decode_text($connection, &$part, $message_number, $id, $o
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if($charset){
|
if($charset){
|
||||||
$msg = mb_convert_encoding($msg, $to_charset, $charset);
|
if ($charset === 'windows-1256') {
|
||||||
|
$msg = iconv('windows-1256', 'utf-8', $msg);
|
||||||
|
} else {
|
||||||
|
$msg = mb_convert_encoding($msg, $to_charset, $charset);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
$msg = trim($msg);
|
$msg = trim($msg);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user