From: rabuzarus Date: Wed, 7 Feb 2018 16:01:27 +0000 (+0100) Subject: membersince: fix utf-8 encoding issues X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a307bf472e54f245d3202b500f3dd60e091f0fd8;p=friendica-addons.git membersince: fix utf-8 encoding issues --- diff --git a/membersince/membersince.php b/membersince/membersince.php index 8c42c135..01de8fd4 100644 --- a/membersince/membersince.php +++ b/membersince/membersince.php @@ -26,7 +26,7 @@ function membersince_display(&$a, &$b) if (current_theme() == 'frio') { // Works in Frio. $doc = new DOMDocument(); - $doc->loadHTML($b); + $doc->loadHTML(mb_convert_encoding($b, 'HTML-ENTITIES', 'UTF-8')); $elm = $doc->getElementById('aprofile-fullname');