lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> local result = string.pack(("I4"):rep(utf8.len(s)), utf8.codepoint(s))

local result = string.pack(("I4"):rep(utf8.len(s)), utf8.codepoint(s, 1, -1))

-- Roberto