From cb5524559ae5f30b7512fad97eebc9a214cd862e Mon Sep 17 00:00:00 2001 From: Emeric Date: Tue, 30 Mar 2021 15:20:50 +0200 Subject: [PATCH] Improve utf8 support for python 2 --- OpenSubtitlesDownload.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/OpenSubtitlesDownload.py b/OpenSubtitlesDownload.py index c8ce72b..503166b 100755 --- a/OpenSubtitlesDownload.py +++ b/OpenSubtitlesDownload.py @@ -251,8 +251,8 @@ def hashFile(path): def selectionGnome(subtitlesResultList): """GNOME subtitles selection window using zenity""" - subtitlesSelected = '' - subtitlesItems = '' + subtitlesSelected = u'' + subtitlesItems = u'' subtitlesMatchedByHash = 0 subtitlesMatchedByName = 0 columnHi = '' @@ -273,7 +273,7 @@ def selectionGnome(subtitlesResultList): if opt_selection_hi == 'on': columnHi = '--column="HI" ' if item['SubHearingImpaired'] == '1': - subtitlesItems += '"✔" ' + subtitlesItems += u'"✔" ' else: subtitlesItems += '"" ' if opt_selection_language == 'on': @@ -331,8 +331,8 @@ def selectionGnome(subtitlesResultList): def selectionKde(subtitlesResultList): """KDE subtitles selection window using kdialog""" - subtitlesSelected = '' - subtitlesItems = '' + subtitlesSelected = u'' + subtitlesItems = u'' subtitlesMatchedByHash = 0 subtitlesMatchedByName = 0