mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-11 08:24:50 +03:00
utf8_encode/utf8_decode are part of PHP 7.2 core
This commit is contained in:
parent
796b10dc14
commit
97348be6c9
1 changed files with 2 additions and 4 deletions
|
|
@ -205,14 +205,12 @@ END;
|
|||
}
|
||||
|
||||
if ($sFromEncoding === Enumerations\Charset::ISO_8859_1
|
||||
&& $sToEncoding === Enumerations\Charset::UTF_8
|
||||
&& \function_exists('utf8_encode')) {
|
||||
&& $sToEncoding === Enumerations\Charset::UTF_8) {
|
||||
return \utf8_encode($sInputString);
|
||||
}
|
||||
|
||||
if ($sFromEncoding === Enumerations\Charset::UTF_8
|
||||
&& $sToEncoding === Enumerations\Charset::ISO_8859_1
|
||||
&& \function_exists('utf8_decode')) {
|
||||
&& $sToEncoding === Enumerations\Charset::ISO_8859_1) {
|
||||
return \utf8_decode($sInputString);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue