From: Guillaume Pellerin Date: Thu, 16 Apr 2009 14:25:59 +0000 (+0000) Subject: retrieve original PyRSS2Gen.py X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=9537ab49827c762a2b91bec8d1ac87eba3443ea8;p=deefuzzer.git retrieve original PyRSS2Gen.py --- diff --git a/tools/PyRSS2Gen.py b/tools/PyRSS2Gen.py index 5a1975e..fc1f1cf 100644 --- a/tools/PyRSS2Gen.py +++ b/tools/PyRSS2Gen.py @@ -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: