Skip to content

Commit

Permalink
#119 - allow utf8 encoded characters in config file
Browse files Browse the repository at this point in the history
  • Loading branch information
grindsa committed Oct 12, 2023
1 parent decf1c7 commit da1cb37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions acme_srv/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,9 +538,9 @@ def load_config(logger=None, mfilter=None, cfg_file=None):
cfg_file = os.path.dirname(__file__) + '/' + 'acme_srv.cfg'
if logger:
logger.debug('load_config({1}:{0})'.format(mfilter, cfg_file))
config = configparser.RawConfigParser()
config = configparser.ConfigParser(interpolation=None)
config.optionxform = str
config.read(cfg_file)
config.read(cfg_file, encoding='utf8')
return config


Expand Down

0 comments on commit da1cb37

Please sign in to comment.