A summary of pycharm Chinese garbled problem

Source: Internet
Author: User
Objective:

These days have just begun to learn Python, and then installed the Pycharm, but the Chinese garbled problem is really annoying, in the internet for a long time, are written a good mess, today finally let me solve, here to summarize the experience, hope can help you

Question: For example, my problem is mainly in the console input Chinese characters will appear the following garbled

The general solution

1.

First, as shown, change all the circles inside the file encoding to the UTF-8 format.

Then click on the application below to recreate a py file, write at the beginning (remember, write at the beginning, and then enter Chinese) #-*-Coding:utf-8-*-

2.

If not, reopen settings, set

3. If not yet

Mine is at the last step.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.