lua-users home
lua-l archive

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


On Tue, Apr 30, 2013 at 5:16 AM, Rob Kendrick <rjek@rjek.com> wrote:

> Also, I'm not sure how well Lua reacts when char is not 8 bits.

This can be problematic absent a library for handling such characters.
For UTF-8 chars, I've yet to hit a problem using the utf-8.lua library
with either Lua 5.1.x or 5.2.x.
<http://www.curse.com/addons/wow/utf8>. Written in pure Lua, it
provides UTF-8 aware substitutes for string.len, string.sub,
string.reverse, string.upper, and string.lower. There are other
solutions. See generally, <http://lua-users.org/wiki/LuaUnicode>.

Paul