🔗 Amazon Kindle EPUB Fix
Amazon's Send to Kindle service has support for EPUB files, however, for historical reasons, it still assumes ISO-8859-1 encoding if no encoding is specified. This creates malformed formatting errors for special characters. It is also pretty strict when it comes to EPUB format validation.
This tool will try to fix your EPUB to be able to use with Send to Kindle. It currently tries to fix these problems:
Fix UTF-8 encoding problem by adding UTF-8 declaration if no encoding is specified
Fix hyperlink problem (result in Amazon rejecting the EPUB) when NCX table of content link to <body> with ID hash.
Detect invalid and/or missing language tag in metadata, and prompt user to select new language.
Remove stray <img> tags with no source field.