I happened to fail to set character encoding in Python terminal on Windows. According to official guide, it's a piece of cake:
# -*- coding: utf-8 -*-
Ok, now testing:
print 'Русский'
Produces piece of mojibake. What am doing wrong?
P.S. IDE is Visual Studio 2010, if it matters
解决方案
Update: See J.F. Sebastian's answer for a better explanation and a better solution.
# -*- coding: utf-8 -*- sets the source file's encoding, not the output encoding.
You have to encode the string just before printing it with the exact same encoding that your terminal is using. In your case, I'm guessing that your code page is Cyrillic (cp866). Therefore,
print 'Русский'.encode("cp866")