how to convert '8868' to u'\u8868'

rurpy at yahoo.com rurpy at yahoo.com
Tue Jun 24 21:51:22 EDT 2008


On Jun 24, 7:30 pm, CodeHunter <Code4Hun... at gmail.com> wrote:
> a = '8868'
> b = u'\u8868'
>
> I want to convert a to b
>
> who can help me ?
>
> thank you very much!

>>> a='8868'
>>> unichr(int(a,16))
u'\u8868'



More information about the Python-list mailing list