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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • CodeHunter

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

    a = '8868'
    b = u'\u8868'

    I want to convert a to b

    who can help me ?

    thank you very much!
  • Asun Friere

    #2
    Re: how to convert '8868' to u'\u8868'

    On Jun 25, 11:30 am, CodeHunter <Code4Hun...@gm ail.comwrote:
    a = '8868'
    b = u'\u8868'
    >
    I want to convert a to b
    >
    who can help me ?
    >
    thank you very much!
    unicode(a)

    Comment

    • rurpy@yahoo.com

      #3
      Re: how to convert '8868' to u'\u8868'

      On Jun 24, 7:30 pm, CodeHunter <Code4Hun...@gm ail.comwrote:
      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'

      Comment

      • CodeHunter

        #4
        Re: how to convert '8868' to u'\u8868'

        On Jun 25, 9:51 am, ru...@yahoo.com wrote:
        On Jun 24, 7:30 pm, CodeHunter <Code4Hun...@gm ail.comwrote:
        >
        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,1 6))
        >
        u'\u8868'
        thank you very much

        Comment

        Working...