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

CodeHunter Code4Hunter at gmail.com
Wed Jun 25 04:03:21 CEST 2008


On Jun 25, 9:51 am, ru... at yahoo.com wrote:
> 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'

thank you very much



More information about the Python-list mailing list