]> granicus.if.org Git - python/commitdiff
Fix unicode issue in tutorial.
authorGeorg Brandl <georg@python.org>
Fri, 31 Aug 2007 06:46:05 +0000 (06:46 +0000)
committerGeorg Brandl <georg@python.org>
Fri, 31 Aug 2007 06:46:05 +0000 (06:46 +0000)
Doc/tutorial/introduction.rst

index 798bee2155ca7e7dd32df0eb909823d391e5b17c..29178e88af8445e2818d5cf751ed7f40583a13d2 100644 (file)
@@ -445,10 +445,8 @@ To convert a string into a sequence of bytes using a specific encoding,
 string objects provide an :func:`encode` method that takes one argument, the
 name of the encoding.  Lowercase names for encodings are preferred. ::
 
-   >>> "Ã\83¤Ã\83\u0020Ã\83".encode('utf-8')
-   b'A*A A'
-
-.. % above example needs beefing up by a unicode dude
+   >>> "Äpfel".encode('utf-8')
+   b'\xc3\x84pfel'
 
 .. _tut-lists: