Skip to content
Snippets Groups Projects
Commit ca6f519c authored by jkerdreu's avatar jkerdreu
Browse files

Fix a encoding bug for ConfigObj

git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/trunk@2023 b32b6428-25c9-4566-ad07-03861ab6144f
parent 5f8d56ed
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,7 @@ def get_cfg_filename(name, cfg_dir=config.conf_dir):
def load_cfg_file(filename):
""" load .ini file and return it as dict"""
if os.path.isfile(filename):
return ConfigObj(filename,indent_type=' ')
return ConfigObj(filename,indent_type=' ',encoding="utf8")
return None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment