[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Converted ui file throws UnicodeEncodeError: 'utf-8' codec can't encode characters in position 1047-
From:       lizhao0512 () 126 ! com
Date:       2024-03-04 2:30:00
Message-ID: 2019c7e1.4539.18e074bed67.Coremail.lizhao0512 () 126 ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]

[Attachment #4 (text/plain)]

After converting the ConfigWindow.ui to Ui_ConfigWindow.py, and then run \
ConfigWindow-test.py with it, I got the following error. Test files are attached.

Traceback (most recent call last):
  File "F:\BaiduNetdiskDownload\SoftwareProject\LYYDownloader-dev\ConfigWindow.py", \
line 64, in <module>  ui = ConfigWindow()
  File "F:\BaiduNetdiskDownload\SoftwareProject\LYYDownloader-dev\ConfigWindow.py", \
line 27, in __init__  self.setupUi(self)
  File "F:\BaiduNetdiskDownload\SoftwareProject\LYYDownloader-dev\Ui_ConfigWindow.py", \
line 179, in setupUi  self.retranslateUi(Dialog)
  File "F:\BaiduNetdiskDownload\SoftwareProject\LYYDownloader-dev\Ui_ConfigWindow.py", \
line 211, in retranslateUi  self.label.setText(QCoreApplication.translate("Dialog", \
"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \
                \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
UnicodeEncodeError: 'utf-8' codec can't encode characters in position 1047-1048: \
surrogates not allowed


.







--

Sincerely,
Zhao Li


[Attachment #5 (text/html)]

<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div \
class="cl-preview-section" style="box-sizing: border-box; color: rgba(0, 0, 0, 0.75); \
font-family: Lato, &quot;Helvetica Neue&quot;, Helvetica, sans-serif; font-size: \
18px; font-variant-ligatures: common-ligatures; background-color: rgb(243, 243, \
243);"><p style="box-sizing: border-box; margin: 0px 0px 1.2em;">After converting \
the&nbsp;<code style="box-sizing: border-box; font-family: &quot;Roboto Mono&quot;, \
&quot;Lucida Sans Typewriter&quot;, &quot;Lucida Console&quot;, monaco, Courrier, \
monospace; font-size: 0.85em; background-color: rgba(0, 0, 0, 0.05); border-radius: \
3px; padding: 2px 4px;">ConfigWindow.ui</code>&nbsp;to&nbsp;<code style="box-sizing: \
border-box; font-family: &quot;Roboto Mono&quot;, &quot;Lucida Sans Typewriter&quot;, \
&quot;Lucida Console&quot;, monaco, Courrier, monospace; font-size: 0.85em; \
background-color: rgba(0, 0, 0, 0.05); border-radius: 3px; padding: 2px \
4px;">Ui_ConfigWindow.py</code>, and then run&nbsp;<code style="box-sizing: \
border-box; font-family: &quot;Roboto Mono&quot;, &quot;Lucida Sans Typewriter&quot;, \
&quot;Lucida Console&quot;, monaco, Courrier, monospace; font-size: 0.85em; \
background-color: rgba(0, 0, 0, 0.05); border-radius: 3px; padding: 2px \
4px;">ConfigWindow-test.py</code>&nbsp;with it, I got the following error. Test files \
are attached.</p><pre style="box-sizing: border-box; font-family: &quot;Roboto \
Mono&quot;, &quot;Lucida Sans Typewriter&quot;, &quot;Lucida Console&quot;, monaco, \
Courrier, monospace; font-size: 0.85em; margin-top: 1.2em; margin-bottom: \
1.2em;"><code style="box-sizing: border-box; font-family: &quot;Roboto Mono&quot;, \
&quot;Lucida Sans Typewriter&quot;, &quot;Lucida Console&quot;, monaco, Courrier, \
monospace; font-size: inherit; background-color: rgba(0, 0, 0, 0.05); border-radius: \
3px; padding: 0.5em; display: block; text-size-adjust: none; overflow-x: auto; \
white-space: pre;">Traceback (most recent call last):  File \
"F:\BaiduNetdiskDownload\SoftwareProject\LYYDownloader-dev\ConfigWindow.py", line 64, \
in &lt;module&gt;  ui = ConfigWindow()
  File "F:\BaiduNetdiskDownload\SoftwareProject\LYYDownloader-dev\ConfigWindow.py", \
line 27, in __init__  self.setupUi(self)
  File "F:\BaiduNetdiskDownload\SoftwareProject\LYYDownloader-dev\Ui_ConfigWindow.py", \
line 179, in setupUi  self.retranslateUi(Dialog)
  File "F:\BaiduNetdiskDownload\SoftwareProject\LYYDownloader-dev\Ui_ConfigWindow.py", \
line 211, in retranslateUi  self.label.setText(QCoreApplication.translate("Dialog", \
"&lt;!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \
                \"http://www.w3.org/TR/REC-html40/strict.dtd\"&gt;\n"
UnicodeEncodeError: 'utf-8' codec can't encode characters in position 1047-1048: \
surrogates not allowed </code></pre></div><div class="cl-preview-section" \
style="box-sizing: border-box; color: rgba(0, 0, 0, 0.75); font-family: Lato, \
&quot;Helvetica Neue&quot;, Helvetica, sans-serif; font-size: 18px; \
font-variant-ligatures: common-ligatures; background-color: rgb(243, 243, 243);"><p \
style="box-sizing: border-box; margin: 1.2em 0px;">.</p></div><p style="margin: \
0;"><br></p><p style="margin: 0;"><br></p><div style="position:relative;zoom:1"><p \
style="margin: 0">--</p><div style="margin:0;">Sincerely,</div><div \
style="margin:0;">Zhao Li</div><div style="clear:both"></div></div></div>


["LYYDownloader-dev.zip" (application/zip)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic