How to take unicode input on Sololearn? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to take unicode input on Sololearn?

I have used Kirk Schafer's technique for unicode enabling, and it works for display. But when I take non-ASCII input, like 'üben', I get an error. How to tackle that? https://code.sololearn.com/coz021hmoFjt/?ref=app

4th Jul 2019, 3:12 PM
HonFu
HonFu - avatar
2 Answers
0
You need to use encode in your program https://code.sololearn.com/cYf5Nxaf5n20/?ref=app
8th Jul 2019, 4:55 AM
Airat Abdrakov 🎸
Airat Abdrakov 🎸 - avatar
0
Airat Abdrakov 🎸, but if I do it like this, the 'ü' disappears from the input. But I want to use it in the code.
8th Jul 2019, 6:38 AM
HonFu
HonFu - avatar