Skip to content

Commit

Permalink
explicitly pass utf-8 encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
iamlemec committed Nov 20, 2023
1 parent 936814a commit 006662a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastpat/tools/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def __init__(self, path, schema, chunk_size=1000, output=False):
self.i = 0
self.j = 0

self.file = open(self.path, 'w+')
self.file = open(self.path, 'w+', encoding='utf-8')
header = ','.join(schema)
self.file.write(f'{header}\n')

Expand Down

0 comments on commit 006662a

Please sign in to comment.