From 57412fc1978d0b98dbb1c07a5abd3c53e9d51c0d Mon Sep 17 00:00:00 2001 From: sfan5 Date: Sat, 20 Aug 2016 23:07:55 +0200 Subject: [PATCH] [rssnotify] Explicitly use utf-8 for writing log file --- rssnotify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rssnotify.py b/rssnotify.py index c28dd37..ef12467 100755 --- a/rssnotify.py +++ b/rssnotify.py @@ -56,7 +56,7 @@ class RssNotify(): message = self._format_msg(entry) self._announce(phenny, message, feedspec[1]) if self.config["logfile"] is not None: - with open(self.config["logfile"], "a") as f: + with open(self.config["logfile"], "a", encoding="utf-8") as f: message = self._format_msg(entry, log_format=True) f.write(message) f.write("\n")