enforce utf-8 encoding for input files (#120)

This commit is contained in:
Mike Fährmann 2018-11-10 18:27:01 +01:00
parent a36259d8f1
commit e26ba682a2
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -283,7 +283,7 @@ def main():
if args.inputfile == "-":
file = sys.stdin
else:
file = open(args.inputfile)
file = open(args.inputfile, encoding="utf-8")
urls += parse_inputfile(file)
file.close()
except OSError as exc: