Skip to content

Commit

Permalink
fix encoding of special characters when writing CSV file
Browse files Browse the repository at this point in the history
  • Loading branch information
Haas committed Apr 28, 2020
1 parent 1bd2982 commit 17d8eb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cucm-exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def write_csv(filename, cli_args, content):
write output to csv file
"""
filename = output_filename(filename, cli_args)
with open(filename, "w", newline="") as csvfile:
with open(filename, "w", newline="", encoding="utf-8") as csvfile:
fieldnames = get_fieldnames(content)

writer = csv.DictWriter(csvfile, fieldnames=fieldnames)
Expand Down

0 comments on commit 17d8eb4

Please sign in to comment.