I'm trying to run my kivy app using autorun on my Raspberry Pi. After restarting my OS it will run but during execution I faced up with encoding problem on the next lines of code:
CommonData.deviceSettings.Measurement.Alchogol = {}
for s in alchogolSettings:
key = s["Name"].encode('utf-8').strip()
value = s["Value"].encode('utf-8').strip()
CommonData.deviceSettings.Measurement.Alchogol.update({key: value})
The next error occured during execution
'ascii' codec can't encode characters in position 0-14: ordinal not in range(128)
In the top of my .py file I setup next instructions:
#!/usr/bin/python
# -*- coding: utf8 -*-
The most interesting in this situation that if I will run this program from usual terminal it launch successfully, but when I'm trying to launch it using autorun this problem occurs
Does anybody know why this problem occurs and how to avoid it?