I have a set of UTF-8 octets and I need to convert them back to unicode code points. How can I do this in python.
e.g. UTF-8 octet [\'0xc5\',\'0x81\'] should be con
l = ['0xc5','0x81'] s = ''.join([chr(int(c, 16)) for c in l]).decode('utf8') s >>> u'\u0141'