[Tutor] Decode and Encode

Sunil Tech sunil.techspk at gmail.com
Wed Jan 28 10:35:58 CET 2015


Hi All,

When i copied a text from web and pasted in the python-terminal, it
automatically coverted into unicode(i suppose)

can anyone tell me how it does?
Eg:
>>> p = "你好"
>>> p
'\xe4\xbd\xa0\xe5\xa5\xbd'
>>> o = 'ªîV'
>>> o
'\xc2\xaa\xc3\xaeV'
>>>


More information about the Tutor mailing list