修复 Python3 代码中中文编码报错的问题

This commit is contained in:
LiYang 2020-05-06 14:34:53 +08:00 committed by GitHub
parent 5503b02920
commit d53f6fd5ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ _py3_lang_config = {
"run": {
"command": "/usr/bin/python3 {exe_path}",
"seccomp_rule": "general",
"env": default_env
"env": default_env + ["PYTHONIOENCODING=utf-8"]
}
}