summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-10-23 19:31:55 -0300
committerJesusaves <cpntb1@ymail.com>2022-10-23 19:31:55 -0300
commit4f2c6d6a9966bba32288b7d427d4becfcdec8ff4 (patch)
tree6d5cb19971fddfef786fce00be8be1920e7151f8
parenta5d6818c8e4f68d9b7dd6272754a781c90be3f8a (diff)
downloadtools-4f2c6d6a9966bba32288b7d427d4becfcdec8ff4.tar.gz
tools-4f2c6d6a9966bba32288b7d427d4becfcdec8ff4.tar.bz2
tools-4f2c6d6a9966bba32288b7d427d4becfcdec8ff4.tar.xz
tools-4f2c6d6a9966bba32288b7d427d4becfcdec8ff4.zip
Explicitely parse new files as Unicode
-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: