The following editor will bring you an article to solve the problem of ui compiled into form.py Chinese garbled code in pyqt. The editor thinks it’s pretty good, so I’ll share it with you now and give it as a reference. Let’s follow the editor and take a look.
I compiled it under Eric tool
Solution:
1. Open C:\Python27\Lib\site-packages\eric4\i18n, remove the name of the Chinese resource package "GB2312." and change it to eric4_zh_CN.qm;
2. Start eric and find "Settings" - "Parameter Settings" - "python" option, set the encoding to "utf-8", and restart eric4.
The above is the entire content that the editor brought to you to solve the problem of ui compiled into form.py Chinese garbled characters in pyqt. I hope everyone will support the PHP Chinese website~
More solutions Please pay attention to the PHP Chinese website for related articles on the problem of garbled Chinese characters when ui is compiled into form.py in pyqt!