[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: from ascii to hex for unicode char
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Fri, 15 Feb 2008 13:44:42 -0200
> 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).