[Tutor] ascii encoding

Kent Johnson kent37 at tds.net
Tue Jan 25 01:10:27 CET 2005


Kent Johnson wrote:
>  >>> import re
>  >>> def hexify(match):
>  ...   return '%%%X' % ord(match.group(0))

Ah, should be '%%%02X' ...

Kent



More information about the Tutor mailing list