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.