- >>> '%s more things' % u'фыва упс'
- u'\u0444\u044b\u0432\u0430 \u0443\u043f\u0441 more things'
- >>> '%r more things' % u'фыва упс'
- "u'\\u0444\\u044b\\u0432\\u0430 \\u0443\\u043f\\u0441' more things"
- >>> '%s more things' % 'фыва упс'
- '\xd1\x84\xd1\x8b\xd0\xb2\xd0\xb0 \xd1\x83\xd0\xbf\xd1\x81 more things'
- >>> '%r more things' % 'фыва упс'
- "'\\xd1\\x84\\xd1\\x8b\\xd0\\xb2\\xd0\\xb0 \\xd1\\x83\\xd0\\xbf\\xd1\\x81' more things"
- >>> u'%s more things' % u'фыва упс'
- u'\u0444\u044b\u0432\u0430 \u0443\u043f\u0441 more things'
- >>> u'%r more things' % u'фыва упс'
- u"u'\\u0444\\u044b\\u0432\\u0430 \\u0443\\u043f\\u0441' more things"
- >>> u'%r more things' % 'фыва упс'
- u"'\\xd1\\x84\\xd1\\x8b\\xd0\\xb2\\xd0\\xb0 \\xd1\\x83\\xd0\\xbf\\xd1\\x81' more things"
- >>> u'%s more things' % 'фыва упс'
- Traceback (most recent call last):
- File "<input>", line 1, in <module>
- UnicodeDecodeError: 'ascii' codec can't decode byte 0xd1 in position 0: ordinal not in range(128)