enforce utf-8 encoding for input files (#120)
This commit is contained in:
parent
a36259d8f1
commit
e26ba682a2
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user