print жопа encode cp1251 decode utf8 Traceback most recent call last F

1
2
3
4
5
6
print u"жопа".encode("cp1251").decode("utf8")
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/Users/bstar/.pyenv/versions/ostrota/lib/python2.7/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe6 in position 0: invalid continuation byte