Python Forum
[Kivy] A question about encoding - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: GUI (https://python-forum.io/forum-10.html)
+--- Thread: [Kivy] A question about encoding (/thread-25068.html)



A question about encoding - Exsul1 - Mar-18-2020

I had to add .encode('utf-8') to the end of a string containing vowels with macrons (ā and ē) to prevent my Kivy app from crashing, but these characters are not rendered properly in the app now. ē appears as \xc4\x93 and the string has been converted into a bytes literal. How do I prevent this?


RE: A question about encoding - deanhystad - Mar-22-2020

If you provide some code and the actual error text when you exclude the .encode('utf-8) you might get some responses. As is your question is too nebulous