mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 13:02:07 +02:00
MDL-71637 core: Set default for mb_substitute_character
This commit is contained in:
parent
efb3d4e7a7
commit
5bf48252b5
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user