From 1c2dd285bf6b237a441c9351167d4795447b4d2f Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 23 Oct 2022 19:48:58 -0300 Subject: Force encoding to UTF-8, I said. --- news.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/news.py b/news.py index a3d327a..f5bbb52 100755 --- a/news.py +++ b/news.py @@ -50,7 +50,7 @@ class BasicWriter(object): __slots__ = ('stream', 'isFirst') __metaclass__ = ABCMeta def __init__(self, outfile): - self.stream = open(outfile, 'w') + self.stream = open(outfile, 'w', encoding='utf-8') self.isFirst = True @abstractmethod -- cgit v1.2.3-60-g2f50