lua-users home
lua-l archive

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

On Sat, Mar 22, 2008 at 08:22:33AM +0900, Alex Davies wrote:
> The same is said for string.char.  Or do you mean to say 
> string.char(string.byte('!')) does not work as expected?
Your example work as expected as long as char is within ASCII
range. What does not work for me is
as used character is c with carron encoded in utf-8 which makes
it two bytes long. string.byte() use only the first of them (I guess)