MikeSiLVO / script.skinshortcuts

GNU General Public License v2.0
18 stars 21 forks source link

Fix for encoding Error under Matrix #21

Closed puenktchen closed 4 years ago

puenktchen commented 4 years ago

Fixes an error that happens for me at the menu building process with Arctic Zephyr 2:

ERROR <general>: File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.skinshortcuts/resources/lib/xmlfunctions.py", line 88, in buildMenu
                    self.writexml( profilelist, mainmenuID, groups, numLevels, buildMode, progress, options, minitems )

ERROR <general>: File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.skinshortcuts/resources/lib/xmlfunctions.py", line 678, in writexml
                    DATA._save_hash( path, f.read() )

ERROR <general>: File "/data/user/0/org.xbmc.kodi/cache/apk/assets/python3.7/lib/python3.7/encodings/ascii.py", line 26, in decode
                    return codecs.ascii_decode(input, self.errors)[0]

ERROR <general>: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 183: ordinal not in range(128)
MikeSiLVO commented 4 years ago

Thanks 😃