mirror of
https://github.com/FAUSheppy/ths-reference-data-collector
synced 2025-12-06 06:51:35 +01:00
explicitly define encoding for windows
This commit is contained in:
2
main.py
2
main.py
@@ -91,7 +91,7 @@ def checkLastMonths(backwardsMonths=6):
|
||||
# parse and dump
|
||||
csvOut = os.path.join(CSV_DIR, 'Wetterdaten-{}-{}.csv'.format(
|
||||
calendar.month_name[monthNumber], year))
|
||||
with open(csvOut, 'w', newline='') as file:
|
||||
with open(csvOut, 'w', newline='', encoding="utf-8") as file:
|
||||
|
||||
fieldnames = list(headerMappings.values())
|
||||
writer = csv.DictWriter(file, fieldnames=fieldnames, delimiter=";")
|
||||
|
||||
Reference in New Issue
Block a user