From 4f2c6d6a9966bba32288b7d427d4becfcdec8ff4 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 23 Oct 2022 19:31:55 -0300 Subject: Explicitely parse new files as Unicode --- news.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/news.py b/news.py index 07d1ef6..a3d327a 100755 --- a/news.py +++ b/news.py @@ -185,7 +185,7 @@ def main(outdir, indir=None): suffix = '.txt' if not entry.endswith(suffix): continue - e = open(os.path.join(indir, entry)).read() + e = open(os.path.join(indir, entry), encoding="utf-8").read() for s in out: s.put(e, entry[:-len(suffix)]) for s in out: -- cgit v1.2.3-60-g2f50