Quoting Dusan Zatkovsky <[EMAIL PROTECTED]>:
I have tried "print repr ( html )" and it prints strange charracters ( <\x00h\x00t\x00m\x00l\x00>\x00<\x00h ... ). Couldn't be problem there?
Yup. The 0-byte (\x00) is the "end of text" character. The zero bytes come from unicode. It seems that you store the text as "Unicode 16bit little endian" in the database.
To fix this, use the codec module of python to convert the unicode to UTF-8. This will also make the HTML take half the amount of bytes in the database.
Regards, -- Aaron "Optimizer" Digulla a.k.a. Philmann Dark "It's not the universe that's limited, it's our imagination. Follow me and I'll show you something beyond the limits." http://www.pdark.de/ _______________________________________________ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt