[PyQt] UnicodeDecodeError with output from Windows OS command

J Barchan jnbarchan at gmail.com
Thu Nov 30 21:49:33 GMT 2017

​I am being told elsewhere ​by a Qt expert that all I need to write in C++
would be:


That's it!  Which looks perfect to me.

Now, please, how can I do that from PyQt?  The C++ is somehow passing a
QByteArray as a QString, but if I understand correctly I cannot use those
types with PyQt.
Instead I must use Python's `bytes` & `str` types respectively, and then I
end up have to call `decode()` and specify an encoding, and that's where I
get lost.

*All I want is the Python/PyQt equivalent code for that C++ statement
above, please??*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20171130/415d8222/attachment-0001.html>

More information about the PyQt mailing list