1. >>> '%s more things' % u'фыва упс'
  2. u'\u0444\u044b\u0432\u0430 \u0443\u043f\u0441 more things'
  3. >>> '%r more things' % u'фыва упс'
  4. "u'\\u0444\\u044b\\u0432\\u0430 \\u0443\\u043f\\u0441' more things"
  5. >>> '%s more things' % 'фыва упс'
  6. '\xd1\x84\xd1\x8b\xd0\xb2\xd0\xb0 \xd1\x83\xd0\xbf\xd1\x81 more things'
  7. >>> '%r more things' % 'фыва упс'
  8. "'\\xd1\\x84\\xd1\\x8b\\xd0\\xb2\\xd0\\xb0 \\xd1\\x83\\xd0\\xbf\\xd1\\x81' more things"
  9. >>> u'%s more things' % u'фыва упс'
  10. u'\u0444\u044b\u0432\u0430 \u0443\u043f\u0441 more things'
  11. >>> u'%r more things' % u'фыва упс'
  12. u"u'\\u0444\\u044b\\u0432\\u0430 \\u0443\\u043f\\u0441' more things"
  13. >>> u'%r more things' % 'фыва упс'
  14. u"'\\xd1\\x84\\xd1\\x8b\\xd0\\xb2\\xd0\\xb0 \\xd1\\x83\\xd0\\xbf\\xd1\\x81' more things"
  15. >>> u'%s more things' % 'фыва упс'
  16. Traceback (most recent call last):
  17. File "<input>", line 1, in <module>
  18. UnicodeDecodeError: 'ascii' codec can't decode byte 0xd1 in position 0: ordinal not in range(128)