local num = "01234"
local tb = {}
for utfChar in string.gmatch(num, "[%z\1-\127\194-\244][\128-\191]*") do
table.insert(tb, utfChar)
end
local numArr = tb
--Test
for i = 1, 5 do
print(numArr[i])
end
--打印
--0
--1
--2
--3
--4
local num = "01234"
local tb = {}
for utfChar in string.gmatch(num, "[%z\1-\127\194-\244][\128-\191]*") do
table.insert(tb, utfChar)
end
local numArr = tb
--Test
for i = 1, 5 do
print(numArr[i])
end
--打印
--0
--1
--2
--3
--4