From 1840b944530e71361fb46cf8b73a28412db4afa4 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Wed, 27 Jun 2018 00:54:58 +0200 Subject: [PATCH] Later: load the db with utf8 encoding (the default for AtomicFile). --- plugins/Later/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Later/plugin.py b/plugins/Later/plugin.py index 0df851ad6..e38c05e17 100644 --- a/plugins/Later/plugin.py +++ b/plugins/Later/plugin.py @@ -71,7 +71,7 @@ class Later(callbacks.Plugin): def _openNotes(self): try: - fd = open(self.filename) + fd = open(self.filename, encoding='utf8') except EnvironmentError as e: self.log.warning('Couldn\'t open %s: %s', self.filename, e) return