]> git.parisson.com Git - deefuzzer.git/commitdiff
retrieve original PyRSS2Gen.py
authorGuillaume Pellerin <yomguy@parisson.com>
Thu, 16 Apr 2009 14:25:59 +0000 (14:25 +0000)
committerGuillaume Pellerin <yomguy@parisson.com>
Thu, 16 Apr 2009 14:25:59 +0000 (14:25 +0000)
tools/PyRSS2Gen.py

index 5a1975e7f5a0f4b75ca60a38a5516944a1aa3b9f..fc1f1cf245f4bcddfa8b22aaf57e8d195f4dbe18 100644 (file)
@@ -10,14 +10,14 @@ import datetime
 
 # Could make this the base class; will need to add 'publish'
 class WriteXmlMixin:
-    def write_xml(self, outfile, encoding = "utf-8"):
+    def write_xml(self, outfile, encoding = "iso-8859-1"):
         from xml.sax import saxutils
         handler = saxutils.XMLGenerator(outfile, encoding)
         handler.startDocument()
         self.publish(handler)
         handler.endDocument()
 
-    def to_xml(self, encoding = "utf-8"):
+    def to_xml(self, encoding = "iso-8859-1"):
         try:
             import cStringIO as StringIO
         except ImportError: