lua-users home
lua-l archive

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


Dirk..

On Fri, Feb 23, 2018 at 5:55 PM, Dirk Laurie <dirk.laurie@gmail.com> wrote:
> I suppose this is well known to everybody except me (who until ten
> minutes ago was doing it by `iconv` via a temporary file and
> `io.popen`).
>
>     utf = utf8.char(iso:byte(1,-1))

jeje, first time doing "man unicode" or equivalent ? ( 5th paragraph
reads "The  UCS characters 0x0000 to 0x007f are identical to those of
the classic US-ASCII character set and the characters in the range
0x0000 to 0x00ff are identical to those in ISO 8859-1 (Latin-1)." in
my machine ) ( not working with unicode in lua, but I've been know to
do similar things in Java for char<->latin1 bytes )

Francisco Olarte.