You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think there's a known issue with the kv decoding codec on Android, where it defaults to ascii rather than utf-8. A workaround is to remove the non-ascii characters from the kv code and set (or at least import) them from the python code.
Hi,
I'm trying to use Cyrillic in the interface, but app does not start. Here is the code:
main.py
main.kv
When I run the program on Android, I got:
[INFO ] [Logger ] Record log in /storage/emulated/0/Download/TrafficTaxApp/TrafficTaxApp/.kivy/logs/kivy_17-12-03_2.txt
[INFO ] [Kivy ] v1.9.2-dev0
[INFO ] [Python ] v3.6.2 (default, Oct 29 2017, 05:27:57)
[GCC 7.2.0]
[INFO ] [Factory ] 193 symbols loaded
[INFO ] [Image ] Providers: img_tex, img_dds, img_gif, img_sdl2 (img_pil, img_ffpyplayer ignored)
Traceback (most recent call last):
File "/storage/emulated/0/Download/TrafficTaxApp/TrafficTaxApp/main.py", line 19, in
presentation = Builder.load_file("main.kv")
File "/data/data/ru.iiec.pydroid3/files/i686-linux-android/lib/python3.6/site-packages/kivy/lang/builder.py", line 290, in load_file
data = fd.read()
File "/data/data/ru.iiec.pydroid3/files/i686-linux-android/lib/python3.6/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 186: ordinal not in range(128)
On Ubuntu, everything is good.
Any idea on this?
The text was updated successfully, but these errors were encountered: