Commit cb514f98 authored by Gordon Bateson's avatar Gordon Bateson
Browse files

for consistency, use 0x80 instead of 128 in hotpot_charcode_to_utf8()

parent 477969b6
...@@ -517,7 +517,7 @@ function hotpot_charcode_to_utf8($charcode) { ...@@ -517,7 +517,7 @@ function hotpot_charcode_to_utf8($charcode) {
} }
if ($charcode <= 0x7FF) { if ($charcode <= 0x7FF) {
// 2-byte char // 2-byte char
return chr(($charcode >> 0x06) + 0xC0).chr(($charcode & 0x3F) + 128); return chr(($charcode >> 0x06) + 0xC0).chr(($charcode & 0x3F) + 0x80);
} }
if ($charcode <= 0xFFFF) { if ($charcode <= 0xFFFF) {
// 3-byte char // 3-byte char
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment