From: fab on 23 Apr 2010 12:22 Hello. I have to read the contents of a binary file (a PNG file exactly), and dump it into an RTF file. The RTF-file has been opened with codecs.open in utf-8 mode. As I expected, the utf-8 decoder chokes on some combinations of bits; how can I tell python to dump the bytes as they are, without interpreting them? Thanks. -- Fabrice DELENTE
|
Pages: 1 Prev: a.extend(b) better than a+=b ? Next: Importing package on Windows XP |