Cyrillic in python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Cyrillic in python

I want insert in input() a string with text on cyrillic. But Solo displays an UnicodeEncodeError. I tried u'CyrillicText', without success. Has this problem a solution?

17th Aug 2019, 4:43 PM
Кадочникова О. Г.
Кадочникова О. Г. - avatar
2 Answers
0
The unicodeEncodeError does not appear, but the text in input has a bit structure: 'u0412\u0432…', so the compiler does not see it.
17th Aug 2019, 7:50 PM
Кадочникова О. Г.
Кадочникова О. Г. - avatar
- 1
Didn't work, displays EOFError.
17th Aug 2019, 6:49 PM
Кадочникова О. Г.
Кадочникова О. Г. - avatar