I need to work with Unicode characters (Cyrillic) in an IPython Notebook. Is there a way to output strings in Unicode and not their unicode or utf8 codes? I would like to have ["",""]as a conclusion in the last two examples below.
In [62]: ""
Out[62]: '\xd0\x90\xd0\x91\xd0\x92'
In [63]: u""
Out[63]: u'\u0410\u0411\u0412'
In [64]: print ""
In [65]: print u""
In [66]: print ["",""]
['\xd0\x90\xd0\x91', '\xd0\x92\xd0\x93']
In [67]: print [u"",u""]
[u'\u0410\u0411', u'\u0412\u0413']
source
share