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 -- http://mail.python.org/mailman/listinfo/python-list