View Single Post
Old 06-09-2009, 05:36 AM   #769
HarryT
eBook Enthusiast
HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.HarryT ought to be getting tired of karma fortunes by now.
 
HarryT's Avatar
 
Posts: 85,557
Karma: 93980341
Join Date: Nov 2006
Location: UK
Device: Kindle Oasis 2, iPad Pro 10.5", iPhone 6
Quote:
Originally Posted by tompe View Post
When I open the file I get
Code:
  href="book.html%23toc"
Why do I get %23? Why do I not get a #? Is # encoded in a special way in UTF-8?
The OPF file was created by Mobi Creator, and I guess that's just the way it does it. If you load the OPF file into Mobi Creator and look at the "Guide" page, you'll see that it's actually displayed as a "#" in the GUI.

Would it be possible to change your code to recognise either "#" or "%23"? It's just that Mobi Creator provides an excellent interface for creating and viewing an OPF file, so even if I use your tool for building the book I'd still like to be able to use Mobi Creator for editing the OPF file.

Last edited by HarryT; 06-09-2009 at 05:52 AM.
HarryT is offline   Reply With Quote