diff --git a/mkchromecast/systray.py b/mkchromecast/systray.py index 81f547129..70b65895d 100644 --- a/mkchromecast/systray.py +++ b/mkchromecast/systray.py @@ -429,7 +429,10 @@ def cast_list(self): print('Available Google Cast Devices', self.availablecc) for index, menuentry in enumerate(self.availablecc): self.entries = menuentry - self.menuentry = self.menu.addAction(str(menuentry[1])) + try: + self.menuentry = self.menu.addAction(str(menuentry[1])) + except UnicodeEncodeError: + self.menuentry = self.menu.addAction(str(unicode(menuentry[1]).encode("utf-8"))) self.menuentry.triggered.connect(self.play_cast) self.menuentry.setCheckable(True) self.separator_menu()