Skip to content

Commit

Permalink
unicode issue on windows fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
visch authored Jul 15, 2022
1 parent 0dd8fdd commit ccaf9e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def persist_messages(delimiter, quotechar, messages, destination_path, fixed_hea
else:
headers[o['stream']] = flattened_record.keys()

with open(filename, 'a', newline='') as csvfile:
with open(filename, 'a', newline='', encoding='utf-8') as csvfile:
writer = csv.DictWriter(csvfile,
headers[o['stream']],
extrasaction='ignore',
Expand Down

0 comments on commit ccaf9e6

Please sign in to comment.