Lua 5.3 idiom to convert ISO-8859-1 into UTF-8
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Lua 5.3 idiom to convert ISO-8859-1 into UTF-8
- From: Dirk Laurie <dirk.laurie@...>
- Date: 2018年2月23日 18:55:42 +0200
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))