On Thu, 21 Dec 2006 13:33:51 +0100, <[EMAIL PROTECTED]> wrote: > Hello, > I got a number 19968: > > 1. how can I change it to the hex form 0x4e00,
'0x%x' % 19968 > 2. and how can I change 0x4e00 to a python unicode character u"\u4e00"? unichr(19968) > thank you! HTH -- python -c "print ''.join([chr(154 - ord(c)) for c in 'U(17zX(%,5.zmz5(17l8(%,5.Z*(93-965$l7+-'])" -- http://mail.python.org/mailman/listinfo/python-list