From 4cb7e839e27a28323905fb9754a8e09b64138118 Mon Sep 17 00:00:00 2001 From: r0oth3x49 Date: Sat, 25 Jul 2020 01:20:08 +0500 Subject: [PATCH] fixed #533 --- udemy/_shared.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/udemy/_shared.py b/udemy/_shared.py index 9a7d287..4e9e873 100644 --- a/udemy/_shared.py +++ b/udemy/_shared.py @@ -89,7 +89,7 @@ def _write_external_links(self, filepath, unsafe=False): file_data = [] if os.path.isfile(filename): - file_data = [i.strip().lower() for i in open(filename) if i] + file_data = [i.strip().lower() for i in open(filename, encoding='utf-8') if i] try: f = codecs.open(filename, 'a', encoding='utf-8', errors='ignore')