[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: UTF8 to/from Unicode?
- From: Roberto Ierusalimschy <roberto@...>
- Date: Sun, 1 Feb 2015 16:00:46 -0200
> 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