Read config files with UTF-8

This commit is contained in:
Philipp Hörist 2018-02-10 18:59:34 +01:00
parent 74a447ad0f
commit f47ea05b79

View file

@ -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