1.1 --- a/tests/unicode.py Fri Jun 16 00:37:50 2017 +0200
1.2 +++ b/tests/unicode.py Sat Jun 17 00:52:56 2017 +0200
1.3 @@ -132,6 +132,14 @@
1.4 except UnicodeDecodeError, exc:
1.5 print "Attempt to decode", s, "as UTF-8 failed."
1.6
1.7 +# Mix Unicode and byte values.
1.8 +
1.9 +u10 = "\u00e6\xf8\u00e5"
1.10 +print "ISO-8859-15 values:"
1.11 +print u10 # \u00e6ø\u00e5
1.12 +print u10.__class__ # __builtins__.str.string
1.13 +print len(u10) # 13
1.14 +
1.15 # Combine bytes and text.
1.16 # The text should be decoded.
1.17