Python print unicode doesn't show correct symbols

Viewed 1682

I am using Ubuntu 12.04 LTS. When I try something like this in terminal:

rfx@digest:/usr/share/fonts/truetype/ttf-dejavu$ echo вдлжофыдвж
вдлжофыдвж

Symbols are shown correctly. But if try to print unicode symbols using python 2.7 I get this:

>>> print u'абв'
ц│ц┌ц≈

As python shows I have utf-8 encoding by default for terminal:

>>> sys.stdout.encoding
'UTF-8'
1 Answers
Related