Commits

Max Pavlov  committed b459736 Draft

fix FB2 / XML header 'encoding' attribute

  • Participants
  • Parent commits 57988a5
  • Branches Elanovich/fix-fb2-xml-header-encoding-attribute-1369775834045

Comments (0)

Files changed (1)

File 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)