Skip to content
Snippets Groups Projects
Unverified Commit 64ac1430 authored by Sanbu's avatar Sanbu Committed by GitHub
Browse files

[Fix] Fix open() encoding problem of Config in Windows (#648)

* fix open in windows

* Update config.py

* Update config.py

* Update config.py
parent 52a79d0c
No related branches found
No related tags found
No related merge requests found
...@@ -143,7 +143,7 @@ class Config: ...@@ -143,7 +143,7 @@ class Config:
if cfg_text: if cfg_text:
text = cfg_text text = cfg_text
elif filename: elif filename:
with open(filename) as f: with open(filename, encoding='utf-8') as f:
text = f.read() text = f.read()
else: else:
text = '' text = ''
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment