summaryrefslogtreecommitdiff
path: root/script/encoder/utf16.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/encoder/utf16.lua')
-rw-r--r--script/encoder/utf16.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/script/encoder/utf16.lua b/script/encoder/utf16.lua
index 744da174..7b08e082 100644
--- a/script/encoder/utf16.lua
+++ b/script/encoder/utf16.lua
@@ -92,6 +92,8 @@ local function utf8next(s, n)
return n+3, utf8byte(s, n)
elseif strmatch(s, "^[\xED][\x80-\x9F][\x80-\xBF]", n) then
return n+3, utf8byte(s, n)
+ elseif strmatch(s, "^[\xEE-\xEF][\x80-\xBF][\x80-\xBF]", n) then
+ return n+3, utf8byte(s, n)
elseif strmatch(s, "^[\xF0][\x90-\xBF][\x80-\xBF][\x80-\xBF]", n) then
return n+4, utf8byte(s, n)
elseif strmatch(s, "^[\xF1-\xF3][\x80-\xBF][\x80-\xBF][\x80-\xBF]", n) then