From cacb224b8dcc32cc55429cfc0b50a167086dd122 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Fri, 26 Jun 2020 17:56:36 +0200 Subject: [PATCH] Fix char encoding --- index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/index.php b/index.php index d38be94..a96d32b 100644 --- a/index.php +++ b/index.php @@ -43,6 +43,7 @@ if(is_array($match) && is_callable($match['target'])) { case 'profile': $content = file_get_contents('pages/profile.html'); $content = str_replace('%UID%', $match['params']['uid'], $content); + $content = mb_convert_encoding($content, 'UTF-8', mb_detect_encoding($content, 'UTF-8, ISO-8859-1', true)); echo $content; break; }