Commits

Anonymous committed b459736 Draft

fix FB2 / XML header 'encoding' attribute

Comments (0)

Files changed (1)

ponyFiction/downloads/fb2.py

             title = story.title,
             author_name = story.authors.all()[0].username, # TODO: multiple authors
         )
-        return etree.tostring(doc, encoding = 'utf8', xml_declaration = True)
+        return etree.tostring(doc, encoding = 'utf-8', xml_declaration = True)
     
     def render_zip_contents(self, zipfile, filename, **kw):
         data = self.render_fb2(**kw)