Resolve Python for vs not in Chinese in VS

Source: Internet
Author: User

Using Python for vs new project in Windows will use the default ANSI encoding (Chinese system: GB2312), if using Chinese cannot compile

Workaround:

1. Advanced save with file to change the encoding format to Utf-8, but you need to do this every time you create a new project.

2. Find the following program.py, with Notepad open the change code to Utf-8, save. (The C-drive needs to be copied and replaced without permission to write the modifications)

PS: This is the template in the cache file, if the first install plugin has not been used, replace the zip file in Projecttemplates-python.

Resolve Python for vs not in Chinese in VS

Related Article

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.