Python Forum
PyQt and Pylupdate5
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PyQt and Pylupdate5
#1
Hello.
I am trying to create a translation file:
pylupdate5.py3 untitled.ui -ts zh_FN.ts
I get an error:
Error:
Traceback (most recent call last): File "/usr/lib64/python3.7/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/lib64/python3.7/runpy.py", line 85, in _run_code exec(code, run_globals) File "/usr/lib64/python3/site-packages/PyQt5/pylupdate_main.py", line 239, in <module> main() File "/usr/lib64/python3/site-packages/PyQt5/pylupdate_main.py", line 228, in main defaultContext, True) UnicodeEncodeError: 'latin-1' codec can't encode characters in position 12-21: ordinal not in range(256)
For the test, I made an empty ui in Designer.
Wrong encoding again.
Coding everywhere utf-8

Ui file test:
OS Linux
python 3.7.4
python3-module-PyQt5 5.11.3

I am new to Python.
Sorry if the question is stupid.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020