comparison gpp/legacy/management/commands/import_old_news_comments.py @ 294:254db4cb6a86

Changes / scripts to import forums. Other tweaks and moving other import scripts to the legacy application.
author Brian Neal <bgneal@gmail.com>
date Wed, 05 Jan 2011 04:09:35 +0000
parents 2367c4795c92
children 4021ea1045f7
comparison
equal deleted inserted replaced
293:c92fb89dbc7d 294:254db4cb6a86
116 116
117 def to_markdown(self, s): 117 def to_markdown(self, s):
118 self.md_writer.reset() 118 self.md_writer.reset()
119 119
120 if not isinstance(s, unicode): 120 if not isinstance(s, unicode):
121 s = s.decode('utf-8', 'replace') 121 s = s.decode('latin-1', 'replace')
122 122
123 self.md_writer.feed(s) 123 self.md_writer.feed(s)
124 return self.md_writer.markdown() 124 return self.md_writer.markdown()