Page 1 of 1

Error with some characters non US

PostPosted: Sat Jun 13, 2020 5:44 am
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!

Re: Error with some characters non US

PostPosted: Wed Sep 23, 2020 7:23 am
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.

Re: Error with some characters non US

PostPosted: Wed Sep 23, 2020 8:49 am
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.