Python Forum

Full Version: PyQt and Pylupdate5
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.