From: Georg Brandl Date: Fri, 31 Aug 2007 06:46:05 +0000 (+0000) Subject: Fix unicode issue in tutorial. X-Git-Tag: v3.0a1~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c3f5bad77803ad95731e418b4ba07675d69e3224;p=python Fix unicode issue in tutorial. --- diff --git a/Doc/tutorial/introduction.rst b/Doc/tutorial/introduction.rst index 798bee2155..29178e88af 100644 --- a/Doc/tutorial/introduction.rst +++ b/Doc/tutorial/introduction.rst @@ -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. :: - >>> "äÃ\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: