I have a hex string like:
data = \"437c2123\"
I want to convert this string to a sequence of characters according to the ASCII table. The
In Python2
>>> "437c2123".decode('hex') 'C|!#'
In Python3 (also works in Python2, for <2.6 you can't have the b prefixing the string)
b
>>> import binascii >>> binascii.unhexlify(b"437c2123") b'C|!#'