You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- Assuming your source code isin utf-8.-- convert from utf-8:
local utf8_str ='测试字符串'
local print_safe_str = enc.decode(utf8_str,'utf8')
print(print_safe_str)-- convert to utf-8:
local original_str= enc.encode(print_safe_str,'utf8')
assert(utf8_str==original_str)