[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: from ascii to hex for unicode char
- From: Jelle Huisman <jelle@...>
- Date: Fri, 15 Feb 2008 15:38:22 +0000
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)
Thanks,
Jelle