Skip to content

Commit 17d8eb4

Browse files
author
Haas
committed
fix encoding of special characters when writing CSV file
1 parent 1bd2982 commit 17d8eb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cucm-exporter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def write_csv(filename, cli_args, content):
7979
write output to csv file
8080
"""
8181
filename = output_filename(filename, cli_args)
82-
with open(filename, "w", newline="") as csvfile:
82+
with open(filename, "w", newline="", encoding="utf-8") as csvfile:
8383
fieldnames = get_fieldnames(content)
8484

8585
writer = csv.DictWriter(csvfile, fieldnames=fieldnames)

0 commit comments

Comments
 (0)