Python Chinese display garbled, already at the beginning with coding:utf-8 or garbled.
In the python2.7 will garbled, in Python3 not, so it is fixed in the compiler pycharm problem.
Here's how to fix it:
1. Open the Settings icon in toolbar
650) this.width=650; "title=" QQ picture 20170207230145.png "Src=" http://s5.51cto.com/wyfs02/M00/8D/61/ Wkiom1iz4x2chowyaab7msdlapq511.png-wh_500x0-wm_3-wmp_4-s_2044916945.png "alt=" Wkiom1iz4x2chowyaab7msdlapq511.png-wh_50 "/>
650) this.width=650; "title=" QQ picture 20170207225530.jpg "style=" Float:none; "src=" http://s5.51cto.com/wyfs02/M02/8D/61 /wkiom1iz4dpxglauaad8isbc5c8511.jpg-wh_500x0-wm_3-wmp_4-s_3810247436.jpg "alt=" Wkiom1iz4dpxglauaad8isbc5c8511.jpg-wh_50 "/>
The first step in place is as simple as this:
Toolbar (setting) ==>editor===>code style==>file encodings==>ide encoding:utf-8; Project encoding:utf-8;default Encoding for prooerties files:utf-8 (full change UTF-8) ===>ok (Enter)
650) this.width=650; "title=" QQ picture 20170207225457.png "style=" Float:none; "src=" Http://s2.51cto.com/wyfs02/M01/8D/5E /wkiol1iz4dlgqcdraajihiz-pxg526.png-wh_500x0-wm_3-wmp_4-s_3726687382.png "alt=" Wkiol1iz4dlgqcdraajihiz-pxg526.png-wh_50 "/>
650) this.width=650; "title=" QQ picture 20170207225611.png "style=" Float:none; "src=" http://s1.51cto.com/wyfs02/M02/8D/61 /wkiom1iz4dwgyv3haadsqravtl4680.png-wh_500x0-wm_3-wmp_4-s_3796315561.png "alt=" Wkiom1iz4dwgyv3haadsqravtl4680.png-wh_50 "/>
The end.
This article is from the "Pcjazz" blog, make sure to keep this source http://520527.blog.51cto.com/510527/1895890
The first day of the Python course, there was a coding problem.