From e15bdf767e19f4fc21fa9f14cfc1f2e38dcf911b Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Sun, 5 Oct 2008 06:22:58 +0000 Subject: [PATCH] [1.0.X] 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). Backport r9133 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9137 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- docs/ref/contrib/syndication.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/ref/contrib/syndication.txt b/docs/ref/contrib/syndication.txt index 17e0234d07..220c809aeb 100644 --- a/docs/ref/contrib/syndication.txt +++ b/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"http://www.example.com/entries/1/", ... description=u"

Today I had a Vienna Beef hot dog. It was pink, plump and perfect.

") - >>> print f.writeString('utf8') - + >>> print f.writeString('UTF-8') + ...