diff --git a/src/main/python/create_measurements.py b/src/main/python/create_measurements.py index 50230c844..ed0086949 100755 --- a/src/main/python/create_measurements.py +++ b/src/main/python/create_measurements.py @@ -42,7 +42,7 @@ def build_weather_station_name_list(): Grabs the weather station names from example data provided in repo and dedups """ station_names = [] - with open('../../../data/weather_stations.csv', 'r') as file: + with open('../../../data/weather_stations.csv', 'r',encoding="utf8") as file: file_contents = file.read() for station in file_contents.splitlines(): if "#" in station: @@ -111,7 +111,7 @@ def build_test_data(weather_station_names, num_rows_to_create): print('Building test data...') try: - with open("../../../data/measurements.txt", 'w') as file: + with open("../../../data/measurements.txt", 'w',encoding="utf8") as file: progress = 0 for chunk in range(chunks):