Menu

#141 ePub: problem handling files containing %xx escaped chars

All platforms
open
nobody
Core (54)
5
2011-12-16
2011-12-16
pra
No

I noticed, that in some ebooks the internal links do not work and only some (not all) chapters are displayed in the ToC. Unpacking the epub and changing it's internal HTML structure revealed that the problem is in files containing spaces or characters like [ ], which are escaped with sequences like %20 internally. Removing such chars from all the filenames at least made the links work.

you can see an example here:
http://cthulhuchick.com/free-complete-lovecraft-ebook-nook-kindle/
in this case, only the space-less chapters are shown in the ToC. In the case of my ebook (about which I do not know whenever I might redistribute it), the ToC is not displayed at all, despite the ePub having a toc.ncx. I _think_ it might have to do something with the book's title being not entirely ASCII.

Can verify the issue to happen on both Android and Windows

Discussion

  • Olexandr

    Olexandr - 2012-04-26

    This patch fix bug.
    But if epub contain files with Cyrillic name, this is not work (may be bed unzip encoder)

     
  • Olexandr

    Olexandr - 2012-04-26
     
  • Olexandr

    Olexandr - 2012-04-26

    epub with cyrillic files. Contain 4 chapters.

     

Log in to post a comment.

MongoDB Logo MongoDB