Quote:
Originally Posted by HarryT
Nope. ePubs are Unicode, so could be 2 bytes per character. And, as I mentioned, it's a count of bytes in the compressed file, so I'm afraid it's not that easy  .
|
Even if you could count characters, epub allows UTF-8 or UTF-16 which means you can't make any easy assumptions about character size (UTF-16 you can assume 1 char == 2 bytes, but UTF-8 could be 1 byte, 2 bytes, or even 3 bytes).