Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #11333
| Date | 2011-08-13 00:59 -0400 |
|---|---|
| Subject | How to print non-printable chars?? |
| From | Julio Cesar Rodriguez Cruz <juliocesarrodriguezcruz@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2249.1313211585.1164.python-list@python.org> (permalink) |
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,
i.e.:
>>> import quopri
>>> quopri.encodestring('ñè')
'=F1=E8=18'
>>> quopri.decodestring('=F1=E8=18')
'\xf1\xe8\x18'
but how to do the reverse? ...gived '\xf1\xe8\x18', print 'ñè'
any tips?
thanks
Julio Cesar
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
How to print non-printable chars?? Julio Cesar Rodriguez Cruz <juliocesarrodriguezcruz@gmail.com> - 2011-08-13 00:59 -0400
Re: How to print non-printable chars?? Nobody <nobody@nowhere.com> - 2011-08-13 06:22 +0100
Re: How to print non-printable chars?? Julio Cesar <juliocesarrodriguezcruz@gmail.com> - 2011-08-12 22:55 -0700
Re: How to print non-printable chars?? coldpizza <vriolk@gmail.com> - 2011-08-18 13:44 -0700
Re: How to print non-printable chars?? jmfauth <wxjmfauth@gmail.com> - 2011-08-19 08:07 -0700
csiph-web