Solve the problem that ui in pyqt is compiled into form.py with Chinese garbled characters

高洛峰
Release: 2017-02-11 13:34:58
Original
1624 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!