QTextCodec

David Cortesi davecortesi at gmail.com
Fri Aug 26 17:07:44 BST 2022


Updating an old program that in PyQt5 imported QTextCodec from QtCore, but
with PyQt6 it is not found.

According to the Qt docs (https://doc.qt.io/qt-6/qtextcodec.html) it is now
part of the "Qt5 Core Compatibility APIs" but I don't find any such import
package, nor any mention in the Qt6 differences page (
https://www.riverbankcomputing.com/static/Docs/PyQt6/pyqt5_differences.html
).

I don't understand why this function, text re-encoding, would be
deprecated. Did Qt6 add some better way to do it? Or where did it go in
PyQt6?

Thanks for the insight,
Dave Cortesi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20220826/3d5a4485/attachment.htm>


More information about the PyQt mailing list