0
Can someone please help me with this one? Character issues
I just started learning coding and choose Python as my programming language. But I am having troubles with some characters, like "é", "ã", and some others. I tried to use the UTF stuff and all, but it still doesn't work properly. What am I missing here? Thanks https://code.sololearn.com/czda44oOnsYD/?ref=app
4 Respostas
+ 2
To enable UTF-16, add this at the beginning of your code:
import sys, codecs
sys.stdout = codecs.getwriter('utf_16')(sys.stdout.buffer, 'strict')
+ 1
You're so welcome Pedro Boscardin! Happy coding! 😊
0
By the way, I use the SoloLearn's Code Playground
0
Kishalaya Saha thank you so much!!! I didn't know about this command