From 49114d5cb5d9ff6e8aeda89bfbe5a49e07359818 Mon Sep 17 00:00:00 2001 From: ralfulrich <ralf.ulrich@kit.edu> Date: Mon, 20 May 2019 22:45:16 +0200 Subject: [PATCH] consider utf8 --- do-copyright.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/do-copyright.py b/do-copyright.py index 4c86e24a..318f7784 100755 --- a/do-copyright.py +++ b/do-copyright.py @@ -46,7 +46,7 @@ def checkNote(filename): # read input file into lines lines = [] - with open(filename, "r") as file: + with open(filename, "r", encoding="utf-8") as file: for line in file.readlines(): lines.append(line) file.close() -- GitLab