config: Use encoding utf-8 for saves

ConfigObj will find the current encoding on reading
This commit is contained in:
Markus Frosch 2020-04-05 17:00:27 +02:00
parent d10919df5f
commit 05ce8831fa
1 changed files with 1 additions and 1 deletions

View File

@ -681,7 +681,7 @@ class ConfigBase(Borg):
def save(self):
"""Save the config to a file"""
dbg('ConfigBase::save: saving config')
parser = ConfigObj()
parser = ConfigObj(encoding='utf-8')
parser.indent_type = ' '
for section_name in ['global_config', 'keybindings']: