From 324c7cd90698a40e22513aa4f5f6e639a0312e59 Mon Sep 17 00:00:00 2001 From: Michael Save Date: Thu, 8 Mar 2012 01:57:10 +1100 Subject: [PATCH] fixed encoding error for extended ASCII characters --- inc/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/functions.php b/inc/functions.php index 6b3e235b..f1c233cf 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -1477,7 +1477,7 @@ } function utf8tohtml($utf8) { - return mb_encode_numericentity(htmlspecialchars($utf8, ENT_NOQUOTES, 'UTF-8'), Array(0xff, 0xffff, 0, 0xffff), 'UTF-8'); + return mb_encode_numericentity(htmlspecialchars($utf8, ENT_NOQUOTES, 'UTF-8'), Array(0x80, 0xffff, 0, 0xffff), 'UTF-8'); } function buildThread($id, $return=false, $mod=false) {