MDL-71637 core: Set default for mb_substitute_character

This commit is contained in:
Peter Dias 2021-05-26 13:51:46 +08:00
parent efb3d4e7a7
commit 5bf48252b5
2 changed files with 2 additions and 2 deletions

View File

@ -104,7 +104,7 @@ function min_fix_utf8($value) {
if ($buggyiconv) {
if (function_exists('mb_convert_encoding')) {
$subst = mb_substitute_character();
mb_substitute_character('');
mb_substitute_character('none');
$result = mb_convert_encoding($value, 'utf-8', 'utf-8');
mb_substitute_character($subst);

View File

@ -1284,7 +1284,7 @@ function fix_utf8($value) {
if ($buggyiconv) {
if (function_exists('mb_convert_encoding')) {
$subst = mb_substitute_character();
mb_substitute_character('');
mb_substitute_character('none');
$result = mb_convert_encoding($value, 'utf-8', 'utf-8');
mb_substitute_character($subst);