From dbc94a38b9707c3874b3d11011a9405280b20565 Mon Sep 17 00:00:00 2001 From: madsmpedersen <m@madsp.dk> Date: Thu, 28 Jan 2016 12:01:27 +0100 Subject: [PATCH] readlines -> utf-8 --- wetb/hawc2/htc_file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wetb/hawc2/htc_file.py b/wetb/hawc2/htc_file.py index f6f6209..e8a7f94 100644 --- a/wetb/hawc2/htc_file.py +++ b/wetb/hawc2/htc_file.py @@ -51,7 +51,7 @@ class HTCFile(HTCContents, HTCDefaults): def readlines(self, filename): self.htc_inputfiles.append(filename) htc_lines = [] - with open(filename) as fid: + with open(filename, encoding='utf-8') as fid: lines = fid.readlines() for l in lines: if l.lower().lstrip().startswith('continue_in_file'): -- GitLab