summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xnews.py2
1 files changed, 1 insertions, 1 deletions
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: