[PyQt] UTF-8 files handling in PyQT4

piotr maliński riklaunim at gmail.com
Sat May 5 16:23:49 BST 2007


That doesn't help. It won't even open a file:

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc4 in position
14: ordinal not in range(128)

It wants to use ASCII "codec". I've noticed that for example
QTextStream has "setCodec" but there isn't anything about encoding for
QFile or textEdit.


More information about the PyQt mailing list