[Python3] Reading a binary file and wrtiting the bytes verbatim ?in an utf-8 file
fab at slick.airforce-one.org
fab at slick.airforce-one.org
Fri Apr 23 12:55:26 EDT 2010
Thanks, I'll try this.
> I have no idea how you'd go about reading the contents of such a file
> in a sensible way.
The purpose is to embed PNG pictures in an RTF file that will be read
by OpenOffice. It seems that OpenOffice reads RTF in 8-bit, so it
should be ok.
The RTF is produced from a TeX source file encoded in UTF-8, that's
why I mix unicode and 8-bit.
--
Fabrice DELENTE
More information about the Python-list
mailing list