[Python-3000-checkins] r57818 - python/branches/py3k/Doc/tutorial/introduction.rst

georg.brandl python-3000-checkins at python.org
Fri Aug 31 08:46:05 CEST 2007


Author: georg.brandl
Date: Fri Aug 31 08:46:05 2007
New Revision: 57818

Modified:
   python/branches/py3k/Doc/tutorial/introduction.rst
Log:
Fix unicode issue in tutorial.


Modified: python/branches/py3k/Doc/tutorial/introduction.rst
==============================================================================
--- python/branches/py3k/Doc/tutorial/introduction.rst	(original)
+++ python/branches/py3k/Doc/tutorial/introduction.rst	Fri Aug 31 08:46:05 2007
@@ -445,10 +445,8 @@
 string objects provide an :func:`encode` method that takes one argument, the
 name of the encoding.  Lowercase names for encodings are preferred. ::
 
-   >>> "äÃ\u0020Ã".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:
 


More information about the Python-3000-checkins mailing list