Error with some characters non US

sandconformgorgecloud
Posts: 85
Joined: Fri Jun 22, 2007 7:26 am

Error with some characters non US

Post by sandconformgorgecloud »

Hi, I quite often have this error, even when I'm managing devices not related to the plugin:

Code: Select all

HomeKit Bridge Error            Exception in plug.actionGroupUpdated line 1066: 'ascii' codec can't encode character u'\xe9' in position 1: ordinal not in range(128)
							 CODE: self.logger.threaddebug ("Action group '{0}' updated".format(newActionGroup.name))
In the past with other plugins I had similar issues because of devices or groups with European letters like é à è and so.

Thanks!
yassi
Posts: 498
Joined: Sun Sep 06, 2015 7:14 am
Location: Germany

Re: Error with some characters non US

Post by yassi »

sandconformgorgecloud wrote:Hi, I quite often have this error, even when I'm managing devices not related to the plugin:

Code: Select all

HomeKit Bridge Error            Exception in plug.actionGroupUpdated line 1066: 'ascii' codec can't encode character u'\xe9' in position 1: ordinal not in range(128)
							 CODE: self.logger.threaddebug ("Action group '{0}' updated".format(newActionGroup.name))
In the past with other plugins I had similar issues because of devices or groups with European letters like é à è and so.

Thanks!
I had this too, with some plugins.
I'm using German.
Seems to be something related to Python.
User avatar
jay (support)
Site Admin
Posts: 19232
Joined: Wed Mar 19, 2008 11:52 am
Location: Austin, Texas
Contact:

Re: Error with some characters non US

Post by jay (support) »

That's actually an error in the plugin - he's attempting to insert a unicode string (newActionGroup.name which is the name of the action group in Indigo and which has a unicode character in it) into an ASCII string (which can't accommodate extended characters). This is a relatively common developer error since Python 2 strings are separated into ASCII and Unicode and you must explicitly use the correct strings.
Jay (Indigo Support)
Twitter | Facebook | LinkedIn
Post Reply

Return to “HomeKit Bridge”