[PyQt] UnicodeDecodeError with output from Windows OS command

J Barchan jnbarchan at gmail.com
Thu Nov 30 11:27:59 GMT 2017

Thanks both for prompt replies.


stream = qt.QDataStream(byte_array, qt.QIODevice.ReadOnly)
> my_string = stream.readQString()
> In my experience it looks to be portable, you dont have to encode/decode
> the string.

looks much more like something reasonable to me, and I'm about to go
investigate now.


Although I will consider what you have suggested if I have to, as I have
said I have *never* had to know/guess/affect anything to do with encoding
when writing similar code outside of Python/PyQt/Qt and have *never* had a
problem or an error, so I really don't see why I should have to start doing
so now....
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20171130/41f0e1b1/attachment.html>

More information about the PyQt mailing list