Commit 483a6586 authored by Dominik Woiwode's avatar Dominik Woiwode
Browse files

Add utf-8-encoding in file reading

parent 031bb0a1
......@@ -172,7 +172,7 @@ class Pad:
if not self.inCache():
with open(self.getRawFilename(), "r") as d:
with open(self.getRawFilename(), "r", encoding="utf-8") as d:
def convert(self):
......@@ -205,7 +205,7 @@ def compilePads(pads):
def allPads(pads, topsOnly=False):
mergedFilename = ""
with open(mergedFilename, "w") as d:
with open(mergedFilename, "w", encoding="utf-8") as d:
for pad in tqdm(sorted(pads, key=lambda p:, desc="Create Topics Document"):
assert isinstance(pad, Pad)
content = pad.getContent()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment