Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It is a bit off-topic, but last time I checked the unicode support in Lua was less than stellar.

Since that was a long time ago, can anyone chime in about the state of unicode support in Lua?



Lua 5.3 has a utf8 library standard now:

http://www.lua.org/manual/5.3/manual.html#6.5

Full unicode support is rarely necessary in my experience. Lua "strings" are raw byte arrays. It is the job of the programmer to validate the byte arrays are in the character set of your choosing and doing appropriate conversions and validation when necessary.


I would rather like my language natively supports binary string, rather than unicode string.

One can always use library functions to process the binary string as unicode.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: