Read config files with UTF-8
This commit is contained in:
parent
74a447ad0f
commit
f47ea05b79
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ class OptionsParser:
|
|||
|
||||
def read(self):
|
||||
try:
|
||||
fd = open(self.__filename)
|
||||
fd = open(self.__filename, encoding='utf-8')
|
||||
except Exception:
|
||||
if os.path.exists(self.__filename):
|
||||
#we talk about a file
|
||||
|
|
Loading…
Add table
Reference in a new issue