[External] QTextCodec

Johnmichael.Quinlan at idsoftware.com Johnmichael.Quinlan at idsoftware.com
Fri Aug 26 17:59:44 BST 2022


https://doc.qt.io/qt-6/qstringencoder.html

might help perhaps.

From: David Cortesi <davecortesi at gmail.com>
Sent: Friday, August 26, 2022 11:08 AM
To: PyQt list <pyqt at riverbankcomputing.com>
Subject: [External] QTextCodec

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<https://urldefense.proofpoint.com/v2/url?u=https-3A__doc.qt.io_qt-2D6_qtextcodec.html&d=DwMFaQ&c=1ZsH6C42INob54FVVIhW8Q&r=BV4yYmvfAONNbcOq2Xw785ECqQ68Bmf55ewm35kjAYeGcCfXZn48383lslVVcqd2&m=P0Grxcv5taADConsUTfDLdxp9Kyk4wvcdyeLVtu8trHach0qR_x0KL7yNY9kk0iH&s=9XI4zZVDj-0J2WhHavLYdLlOt3_SxaB1hHTFvn7VFvk&e=>) 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<https://urldefense.proofpoint.com/v2/url?u=https-3A__www.riverbankcomputing.com_static_Docs_PyQt6_pyqt5-5Fdifferences.html&d=DwMFaQ&c=1ZsH6C42INob54FVVIhW8Q&r=BV4yYmvfAONNbcOq2Xw785ECqQ68Bmf55ewm35kjAYeGcCfXZn48383lslVVcqd2&m=P0Grxcv5taADConsUTfDLdxp9Kyk4wvcdyeLVtu8trHach0qR_x0KL7yNY9kk0iH&s=7ViTDbb2SbCJhPyjuoB4CKe5sF3cy-1SKsSufdWFbs8&e=>).

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/ed097ea3/attachment.htm>


More information about the PyQt mailing list