From cb490b9e5971a294c2bea8bfed50b4b6e663f9fb Mon Sep 17 00:00:00 2001 From: Tomas Groth Date: Wed, 6 Mar 2024 13:08:02 +0000 Subject: [PATCH] Always open downloaded songs as utf-8 --- openlp/plugins/songs/forms/songselectform.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openlp/plugins/songs/forms/songselectform.py b/openlp/plugins/songs/forms/songselectform.py index 8dde1e48e..776272c37 100644 --- a/openlp/plugins/songs/forms/songselectform.py +++ b/openlp/plugins/songs/forms/songselectform.py @@ -125,7 +125,7 @@ class SongSelectForm(QtWidgets.QDialog, Ui_SongSelectDialog, RegistryProperties) self.song_progress_bar.setValue(2) song_filename = self.current_download_item.downloadDirectory() + '/' \ + self.current_download_item.downloadFileName() - song_file = open(song_filename, 'rt') + song_file = open(song_filename, 'rt', encoding='utf-8') song_content = song_file.read() song_file.seek(0) if self.check_for_duplicate(song_content):