[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: converting UTF-16 (was: newbie - Lua and unicode)
- From: Klaus Ripke <paul-lua@...>
- Date: Thu, 14 Sep 2006 18:58:27 +0200
On Thu, Sep 14, 2006 at 06:48:31PM +0200, Philippe Lhoste wrote:
> MS provide functions to convert to UTF-8, which could be useful for
> processing in Lua).
you can use lhf's pack module to read 2-byte numbers from the UTF-16 data
and use unicode.utf8.char(...) to construct utf8 strings.
probably slow as hell but should work