<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">What is your code snippet for the use of QTextCodec? It likely is now supported differently due to the overhaul of the language / localization and string support in qt6?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> David Cortesi <davecortesi@gmail.com> <br>
<b>Sent:</b> Friday, August 26, 2022 11:08 AM<br>
<b>To:</b> PyQt list <pyqt@riverbankcomputing.com><br>
<b>Subject:</b> [External] QTextCodec<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">Updating an old program that in PyQt5 imported QTextCodec from QtCore, but with PyQt6 it is not found.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">According to the Qt docs (<a href="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=">https://doc.qt.io/qt-6/qtextcodec.html</a>)
 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 (<a href="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=">https://www.riverbankcomputing.com/static/Docs/PyQt6/pyqt5_differences.html</a>).<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">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?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks for the insight,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Dave Cortesi<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</body>
</html>