diff --git a/checkcert/checkcert.py b/checkcert/checkcert.py index 012db22..9653be6 100644 --- a/checkcert/checkcert.py +++ b/checkcert/checkcert.py @@ -101,7 +101,7 @@ def main(san, dump, color, filename, hosts): # handle a domain given with a : in it to specify the port if filename: hosts = [] - with open(filename, "r") as infile: + with open(filename, "r", encoding="utf-8") as infile: for line in infile: line = line.strip() hosts.append(line)