How to print non-printable chars??

Julio Cesar Rodriguez Cruz juliocesarrodriguezcruz at
Sat Aug 13 06:59:42 CEST 2011

Hi all,
If I open an .exe file in any text editor I get lot of odd chars,
what I want is to know how to output those chars if I have the hexadecimal
code. I found out how to do the reverse process with the quopri module,

>>> import quopri
>>> quopri.encodestring('ñè')
>>> quopri.decodestring('=F1=E8=18')

but how to do the reverse? ...gived '\xf1\xe8\x18', print 'ñè'

any tips?
Julio Cesar

More information about the Python-list mailing list