From 15f934f77ae23495f8b76ccd6dde0d27998e779c Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Tue, 8 Mar 2016 13:09:15 +0100 Subject: [PATCH] Fix encoding in service.py --- service.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/service.py b/service.py index c0663461..2d47e1fa 100644 --- a/service.py +++ b/service.py @@ -171,8 +171,7 @@ class Service(): self.welcome_msg = False xbmcgui.Dialog().notification( heading=self.addonName, - message=("%s %s" % (lang(33000), user.currUser) - ).encode('utf-8'), + message="%s %s" % (lang(33000), user.currUser), icon="special://home/addons/plugin.video.plexkodiconnect/icon.png", time=2000, sound=False) @@ -225,8 +224,9 @@ class Service(): window('emby_online', value="false") xbmcgui.Dialog().notification( - heading=lang(33001).encode('utf-8'), - message=("%s %s" % (self.addonName, lang(33002))).encode('utf-8'), + heading=lang(33001), + message="%s %s" + % (self.addonName, lang(33002)), icon="special://home/addons/plugin.video." "plexkodiconnect/icon.png", sound=False) @@ -244,7 +244,7 @@ class Service(): # Alert the user that server is online. xbmcgui.Dialog().notification( heading=self.addonName, - message=lang(33003).encode('utf-8'), + message=lang(33003), icon="special://home/addons/plugin.video." "plexkodiconnect/icon.png", time=2000,