Python – [encoding] in Python os.system Solution to Chinese garbled code when calling CMD command

Pieces difference:
use Python’s OS. The system run CMD command pieces
using the command line tools included with the Windows built-in run CMD command
Under the Python CMD:
add the following code in Python programs, the current CMD window coding temporary changes to utf-8

import os
os.system('chcp 65001')

Read More: