[EMAIL PROTECTED] wrote: > I got a number 19968:
>>> x = 19968
> 1. how can I change it to the hex form 0x4e00,
>>> hex(x)
'0x4e00'
> 2. and how can I change 0x4e00 to a python unicode character u"\u4e00"?
>>> unichr(x)
u'\u4e00'
also see:
http://effbot.org/pyfaq/how-do-i-convert-a-number-to-a-string
</F>
--
http://mail.python.org/mailman/listinfo/python-list
