diff options
author | Jesusaves <cpntb1@ymail.com> | 2022-10-23 19:48:58 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2022-10-23 19:48:58 -0300 |
commit | 1c2dd285bf6b237a441c9351167d4795447b4d2f (patch) | |
tree | e082d1894f023a1268c008205f6f4dcbde48b5d4 /news.py | |
parent | 4f2c6d6a9966bba32288b7d427d4becfcdec8ff4 (diff) | |
download | tools-1c2dd285bf6b237a441c9351167d4795447b4d2f.tar.gz tools-1c2dd285bf6b237a441c9351167d4795447b4d2f.tar.bz2 tools-1c2dd285bf6b237a441c9351167d4795447b4d2f.tar.xz tools-1c2dd285bf6b237a441c9351167d4795447b4d2f.zip |
Force encoding to UTF-8, I said.
Diffstat (limited to 'news.py')
-rwxr-xr-x | news.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |