[PyQt] UnicodeDecodeError with output from Windows OS command
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
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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the PyQt