lua-users home
lua-l archive

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

> Hello,
> I try to analyse a unicode character, e.g. "á??". I am able to get the 
> ascii code for this string using: print(utf8.byte("á??",1,-1))
> This gives me 4106, which is correct. However I would like to get the 
> unicode codepoint in hex notation, for this character this would be: 
> 0x100A  How do I get this result? (I use the slnunicode library)

Try string.format("%X",4106).