]> git.phdru.name Git - bookmarks_db.git/commitdiff
Fix(Py3): Open list of titles in UTF-8
authorOleg Broytman <phd@phdru.name>
Tue, 21 Nov 2023 18:47:34 +0000 (21:47 +0300)
committerOleg Broytman <phd@phdru.name>
Tue, 21 Nov 2023 18:47:34 +0000 (21:47 +0300)
set-title-list.py

index be0684c15acad921c9f7e04dca9afe3d1fce4109..d37398475ddae5de7d9b8006f4042ecfefe7c12d 100755 (executable)
@@ -42,7 +42,7 @@ def run():
     URL = None
     title = None
 
-    title_list_file = open(args[0], 'rt')
+    title_list_file = open(args[0], 'rt', encoding='utf-8')
     for line in title_list_file:
         line = line[:-1]  # strip trailing newline
         if URL is None: