From e26ba682a213ae4af85c0f1270bed7cbedafd3f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Sat, 10 Nov 2018 18:27:01 +0100 Subject: [PATCH] enforce utf-8 encoding for input files (#120) --- gallery_dl/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gallery_dl/__init__.py b/gallery_dl/__init__.py index 097aa4e2..723c37ad 100644 --- a/gallery_dl/__init__.py +++ b/gallery_dl/__init__.py @@ -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: