Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

print convert hex as string ascii

hex_string = "0x616263"[2:]
#Slice string to remove leading `0x`

ascii_string = hex_string.decode("hex")
#Convert to ASCII representation

print(ascii_string)

# abc
 
PREVIOUS NEXT
Tagged: #print #convert #hex #string #ascii
ADD COMMENT
Topic
Name
5+8 =