diff options
author | Georg Brandl <georg@python.org> | 2007-08-31 06:46:05 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-08-31 06:46:05 (GMT) |
commit | c3f5bad77803ad95731e418b4ba07675d69e3224 (patch) | |
tree | 380c4af2d7532d9d4689b78a0fbebc20c39da024 /Doc/tutorial/introduction.rst | |
parent | 4afcfb4f0060e2ebf576c998f138363eaa893cb2 (diff) | |
download | cpython-c3f5bad77803ad95731e418b4ba07675d69e3224.zip cpython-c3f5bad77803ad95731e418b4ba07675d69e3224.tar.gz cpython-c3f5bad77803ad95731e418b4ba07675d69e3224.tar.bz2 |
Fix unicode issue in tutorial.
Diffstat (limited to 'Doc/tutorial/introduction.rst')
-rw-r--r-- | Doc/tutorial/introduction.rst | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Doc/tutorial/introduction.rst b/Doc/tutorial/introduction.rst index 798bee2..29178e8 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: |