WLANThermo / WLANThermo_v2

Software für das WLAN Grillthermometer
http://wlanthermo.com
GNU General Public License v3.0
26 stars 15 forks source link

Special character in channel name crashes wlt_nextion.py #54

Closed BjoernSch closed 7 years ago

BjoernSch commented 7 years ago

Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner self.run() File "/usr/lib/python2.7/threading.py", line 763, in run self.__target(*self.__args, **self.__kwargs) File "/usr/sbin/wlt_2_nextion.py", line 998, in NX_display values['main.name' + str(i) + '.txt:10'] = channels[i]['name'].decode('utf-8').encode('latin-1') File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode return codecs.utf_8_decode(input, errors, True) UnicodeEncodeError: 'ascii' codec can't encode character u'\xdf' in position 2: ordinal not in range(128)