Permalink
Browse files

Fix some more weird character issues

  • Loading branch information...
1 parent e685662 commit 90f4ccde23aca8b934c5f3fa7d4212619eb2e8d0 @palfrey committed Jul 24, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 books.py
View
3 books.py
@@ -22,6 +22,7 @@
u"‘": u"'",
u"—": u" - ",
u"…": u"-",
+ u"": u"",
}
series = dict([(s.name,s) for s in db.series])
@@ -117,7 +118,7 @@
</html>""")
toc.close()
if newitems or not exists(folder + ".mobi"):
- cmd = "rm -f book.zip && zip -j book.zip %s/* && ebook-convert book.zip \"%s.mobi\" --output-profile kindle --margin-top 0 --margin-bottom 0 --margin-left 0 --authors=\"%s\"" %(folder.replace(" ", "\\ "), folder, s.author)
+ cmd = "rm -f book.zip && zip -j book.zip %s/* && ebook-convert book.zip \"%s.mobi\" --output-profile kindle --margin-top 0 --margin-bottom 0 --margin-left 0 --authors=\"%s\" --input-encoding=utf-8" %(folder.replace(" ", "\\ "), folder, s.author)
print cmd
system(cmd)

0 comments on commit 90f4ccd

Please sign in to comment.