Answer the question
In order to leave comments, you need to log in
Why does the script not print Cyrillic?
Output line:
('info', u'\u043c\u0440,\u0435\u0434,\u0432\u043d,\u043d\u043e')
('info', '\xd0\xbc\xd1\x80,\xd0\xb5\xd0\xb4,\xd0\xb8\xd0\xbc,\xd0\xbe\xd0\xb4,\xd0\xbd\xd0\xbe')
Answer the question
In order to leave comments, you need to log in
That's right, you're just printing a tuple, not a unicode string.
For python2:
>>> t = ('info', u'\u043c\u0440,\u0435\u0434,\u0432\u043d,\u043d\u043e')
>>> print t
('info', u'\u043c\u0440,\u0435\u0434,\u0432\u043d,\u043d\u043e')
>>> print t[1]
мр,ед,вн,но
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question