From 05ce8831fa8df54a8fa4ab00107661ea7da928b4 Mon Sep 17 00:00:00 2001 From: Markus Frosch Date: Sun, 5 Apr 2020 17:00:27 +0200 Subject: [PATCH] config: Use encoding utf-8 for saves ConfigObj will find the current encoding on reading --- terminatorlib/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminatorlib/config.py b/terminatorlib/config.py index 1e0092e9..fbfcb84e 100644 --- a/terminatorlib/config.py +++ b/terminatorlib/config.py @@ -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']: