Browse Source

Merge pull request #1754 from dhirajsuvarna/bug/export

added encoding format while opening of file
pull/1766/head
Hiroki Nakayama 2 years ago
committed by GitHub
parent
commit
350bc5e95f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. 2
      backend/data_export/pipeline/writers.py

2
backend/data_export/pipeline/writers.py

@ -35,7 +35,7 @@ class LineWriter(BaseWriter):
for record in records:
filename = os.path.join(self.tmpdir, f"{record.user}.{self.extension}")
if filename not in files:
f = open(filename, mode="a")
f = open(filename, mode="a", encoding="utf-8")
files[filename] = f
f = files[filename]
line = self.create_line(record)

Loading…
Cancel
Save