Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c3f5bad

Browse files
committed
Fix unicode issue in tutorial.
1 parent 4afcfb4 commit c3f5bad

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

Doc/tutorial/introduction.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -445,10 +445,8 @@ To convert a string into a sequence of bytes using a specific encoding,
445445
string objects provide an :func:`encode` method that takes one argument, the
446446
name of the encoding. Lowercase names for encodings are preferred. ::
447447

448-
>>> "äÃ\u0020Ã".encode('utf-8')
449-
b'A*A A'
450-
451-
.. % above example needs beefing up by a unicode dude
448+
>>> "Äpfel".encode('utf-8')
449+
b'\xc3\x84pfel'
452450

453451
.. _tut-lists:
454452

0 commit comments

Comments
 (0)