(Retrofit from trunk) N.441 Character "à" in a case log causing the REST/JSON API to fail if mbstring is not enabled

SVN:2.3[4419]
This commit is contained in:
Romain Quetiez
2016-09-27 08:58:18 +00:00
parent d7ee97f5a4
commit dee911c12b

View File

@@ -79,7 +79,7 @@ class Html2Text {
// replace   with spaces
$html = str_replace(" ", " ", $html);
$html = mb_str_replace("\xa0", " ", $html); // DO NOT USE str_replace since it breaks the "à" character which is \xc3 \xa0 in UTF-8
$html = mb_str_replace("\xc2\xa0", " ", $html); // DO NOT USE str_replace since it breaks the "à" character which is \xc3 \xa0 in UTF-8
$html = static::fixNewlines($html);