From 9537ab49827c762a2b91bec8d1ac87eba3443ea8 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Thu, 16 Apr 2009 14:25:59 +0000 Subject: [PATCH] retrieve original PyRSS2Gen.py --- tools/PyRSS2Gen.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: -- 2.39.5