lua-users home
lua-l archive

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


Well, forget about it. It is a correct way to do it.

On Fri Jan 16 2015 at 2:11:41 PM Aapo Talvensaari <aapo.talvensaari@gmail.com> wrote:
Is it by design that utf.len count the BOM to length?

Say utf8.len("\xEF\xBB\xBFa") will return 2 instead of 1?

Regards
Aapo