Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.0.X] Fixed #9291 -- Tweaked a piece of example code slightly to se…

…t 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
  • Loading branch information...
commit e15bdf767e19f4fc21fa9f14cfc1f2e38dcf911b 1 parent f9e78ed
Malcolm Tredinnick authored October 05, 2008

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  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::
921 921
     >>> f.add_item(title=u"Hot dog today",
922 922
     ...     link=u"http://www.example.com/entries/1/",
923 923
     ...     description=u"<p>Today I had a Vienna Beef hot dog. It was pink, plump and perfect.</p>")
924  
-    >>> print f.writeString('utf8')
925  
-    <?xml version="1.0" encoding="utf8"?>
  924
+    >>> print f.writeString('UTF-8')
  925
+    <?xml version="1.0" encoding="UTF-8"?>
926 926
     <feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
927 927
     ...
928 928
     </feed>

0 notes on commit e15bdf7

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