From 915a88afd49942f54d357187ab74e407cbd785cd Mon Sep 17 00:00:00 2001 From: Romain Quetiez Date: Mon, 26 Sep 2016 18:45:32 +0000 Subject: [PATCH] =?UTF-8?q?N.441=20Character=20"=C3=A0"=20in=20a=20case=20?= =?UTF-8?q?log=20causing=20the=20REST/JSON=20API=20to=20fail=20if=20mbstri?= =?UTF-8?q?ng=20is=20not=20enabled?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SVN:trunk[4416] --- application/Html2Text.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/Html2Text.php b/application/Html2Text.php index 4fd6f43ba..9cbe27ce1 100644 --- a/application/Html2Text.php +++ b/application/Html2Text.php @@ -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);