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
>>> "".join((chr(int(x,16)) for x in ['0xc5','0x81'])).decode("utf8") u'\u0141'