hex to normal chars?
Cromwell, Jeremy
jcromwell at ciena.com
Sat Feb 2 18:21:36 EST 2002
I think you want this:
>>> chr(int("41", 16))
'A'
int() can take a string and a base, and returns an int
chr() takes an int and returns the ASCII character
-Jeremy Cromwell
-----Original Message-----
From: maximilianscherr [mailto:MaximilianScherr at T-Online.de]
Sent: Saturday, February 02, 2002 2:47 PM
To: python-list at cwi.nl
Subject: hex to normal chars?
how can i transfer hex numbers to normal chars, like "41" to "A" etc.?
--
http://mail.python.org/mailman/listinfo/python-list
More information about the Python-list
mailing list