kodi 'ascii' codec can't encode character u'\u0159' on arm
#1
maybe somebody will know where is the problem

when i run code below
python:

def notify(self, text, error=False):
  icon = 'DefaultIconError.png' if error else ''
  xbmc.executebuiltin('Notification("%s","%s",5000, %s)' % (self._addon.getAddonInfo('name'), text, icon))

self.notify(self._addon.getLocalizedString(e.id), True)

it runs ok on win64 platform but when i run it on arm i'm getting

Error Contents: 'ascii' codec can't encode character u'\u0159' in position 32: ordinal not in range(128) Traceback (most recent call last):
File "/service.py", line 99, in tick self.notify(self._addon.getLocalizedString(e.id), True)
File "l/service.py", line 24, in notify xbmc.executebuiltin('Notification("%s","%s",5000, %s)' % (self._addon.getAddonInfo('name'), text, icon))

maybe i get it wrong but how is posiible that python use ascii string on arm and unicode on others
Reply


Messages In This Thread
kodi 'ascii' codec can't encode character u'\u0159' on arm - by Sorien - 2019-01-05, 18:16
Logout Mark Read Team Forum Stats Members Help
kodi 'ascii' codec can't encode character u'\u0159' on arm0