We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce72331 commit 51f97d4Copy full SHA for 51f97d4
src/voku/helper/UTF8.php
@@ -14059,7 +14059,7 @@ private static function to_utf8_convert_helper($input)
14059
if (isset(self::$WIN1252_TO_UTF8[$ordC1])) { // found in Windows-1252 special cases
14060
$buf .= self::$WIN1252_TO_UTF8[$ordC1];
14061
} else {
14062
- $cc1 = self::$CHR[$ordC1 / 64] | "\xC0";
+ $cc1 = self::$CHR[intval(floor($ordC1 / 64))] | "\xC0";
14063
$cc2 = ((string) $input & "\x3F") | "\x80";
14064
$buf .= $cc1 . $cc2;
14065
}
0 commit comments