Fix char encoding

This commit is contained in:
Yarmo Mackenbach 2020-06-26 17:56:36 +02:00
parent 92f3c6d1db
commit cacb224b8d

View file

@ -43,6 +43,7 @@ if(is_array($match) && is_callable($match['target'])) {
case 'profile': case 'profile':
$content = file_get_contents('pages/profile.html'); $content = file_get_contents('pages/profile.html');
$content = str_replace('%UID%', $match['params']['uid'], $content); $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; echo $content;
break; break;
} }