From: Oleg Broytman Date: Tue, 21 Nov 2023 18:47:34 +0000 (+0300) Subject: Fix(Py3): Open list of titles in UTF-8 X-Git-Tag: 5.0.0~2 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=bc56d4dc2445573da5ff95d232681bf2c0f7b732;p=bookmarks_db.git Fix(Py3): Open list of titles in UTF-8 --- diff --git a/set-title-list.py b/set-title-list.py index be0684c..d373984 100755 --- a/set-title-list.py +++ b/set-title-list.py @@ -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: