diff options
| author | Stefan Behnel <stefan_ml@behnel.de> | 2016-12-04 08:41:24 +0100 |
|---|---|---|
| committer | Stefan Behnel <stefan_ml@behnel.de> | 2016-12-04 08:41:24 +0100 |
| commit | 4db4e3d537f60fc46f9194e891818ea448ab36d6 (patch) | |
| tree | 2366976deb74f8e61cc4ab70ec2c7facee4009bd /doc/tutorial.txt | |
| parent | 4b8e177886c5bc784959e73610c0ae3172e9a5d6 (diff) | |
| download | python-lxml-4db4e3d537f60fc46f9194e891818ea448ab36d6.tar.gz | |
revert output change
Diffstat (limited to 'doc/tutorial.txt')
| -rw-r--r-- | doc/tutorial.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/tutorial.txt b/doc/tutorial.txt index dbc24149..cc7b2276 100644 --- a/doc/tutorial.txt +++ b/doc/tutorial.txt @@ -679,7 +679,7 @@ serialisation is ASCII: UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' ... >>> etree.tostring(root, method='text', encoding="UTF-8") - b'HelloWörld' + b'HelloW\xc3\xb6rld' Here, serialising to a Python unicode string instead of a byte string might become handy. Just pass the name ``'unicode'`` as encoding: |
