Contact: aviboots(AT)netvision.net.il
39,970 questions
51,912 answers
573 users
s = "707974686f6e" byte_array = bytearray.fromhex(s) ascii = byte_array.decode() print(ascii) ''' run: python '''
import codecs s = "707974686f6e" binary_str = codecs.decode(s, "hex") ascii = str(binary_str, 'utf-8') print(ascii) ''' run: python '''