В приведенном примере:
$cat test.py
# -*- coding: utf8 -*-
s = u"ы"
print "Hello, %s" %s
$python test.py > /dev/null
Traceback (most recent call last):
File "task1.py", line 5, in <module>
print "Hello, %s" %s
UnicodeEncodeError: 'ascii' codec can't encode character u'\u044b' in position 7: ordinal not in range(128)
Как исправить код test.py что-бы не было ошибки?