Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fixed #9291 -- Tweaked a piece of example code slightly to set a good…

… example

for others (now uses an encoding that is guaranteed to work for XML consumers).

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 93aec4e commit 514fba5b920aa1aceef0d1f5d0b7c10d9f315c06 @malcolmt malcolmt committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 docs/ref/contrib/syndication.txt
4 docs/ref/contrib/syndication.txt
@@ -921,8 +921,8 @@ For example, to create an Atom 1.0 feed and print it to standard output::
>>> f.add_item(title=u"Hot dog today",
... link=u"",
... description=u"<p>Today I had a Vienna Beef hot dog. It was pink, plump and perfect.</p>")
- >>> print f.writeString('utf8')
- <?xml version="1.0" encoding="utf8"?>
+ >>> print f.writeString('UTF-8')
+ <?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="" xml:lang="en">

0 comments on commit 514fba5

Please sign in to comment.
Something went wrong with that request. Please try again.