diff --git a/hts/HTS.py b/hts/HTS.py index c80ae9d..474f759 100644 --- a/hts/HTS.py +++ b/hts/HTS.py @@ -431,7 +431,7 @@ class HTS: return def getCSV(self, fileName, given_day, result): - with open(fileName, 'r') as infp: + with open(fileName, 'r', encoding='utf-8') as infp: reader = csv.reader(infp) next(reader) diff --git a/hts/Simulation.py b/hts/Simulation.py index d467adb..421aabe 100644 --- a/hts/Simulation.py +++ b/hts/Simulation.py @@ -20,7 +20,7 @@ class Simulation: return def getCSV(self, fileName, given_day, result): - with open(fileName, 'r') as infp: + with open(fileName, 'r', encoding='utf-8') as infp: reader = csv.reader(infp) next(reader)