View Single Post
Old 08-11-2014, 08:38 AM   #28
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,427
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Well if it is pedantry that we're indulging in here -- when you unzip an epub and edit it using a text editor, you aren't directly editing the file in the epub either.

Your text editor will convert the raw bytes of the file into a set of characters based on what it thinks the character encoding of the file you are editing is. It is these characters that you will edit (unless you are using a hex editor). There is no guarantee that the character encoding your editor uses will be the same as the character encoding any given epub viewer will use for the same file.

Not to mention that if the zip file was created using older/poorly designed zip tools, and it uses non-ascii characters in its filename, it is quite possible that the filenames you get out of the unzip tool will not be the same as the filenames that were put into the epub. Or if you are on windows and the filenames inside the zip file are longer than windows can handle, or they contain characters that are illegal in the filesystem your computer uses and on and on and on...
kovidgoyal is offline   Reply With Quote