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 <> 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.
<>. 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, <>.