-- 长字符串
local long_string = "你好你好你好你好你好你好你好你好"
local encoded_string = ""
for i = 1, #long_string do
local char_code = string.byte (long_string, i)
encoded_string = encoded_string .. char_code .. ","
end
encoded_string = encoded_string:sub (1, -2)
print ("编码后的字符串:", encoded_string)