Back to Error DirectoryW3C EPUBCheck Standard
HTM-058Critical Ingestion Error

HTML documents must be encoded in UTF-8, but UTF-16 was detected.

HTML documents must be encoded in UTF-8, but UTF-16 was detected.

Automated 1-Click Fix Ready

Fix all HTM-058 errors in your EPUB automatically

PreFlight checks for HTM-058 issues in memory and provides 1-click remediation during client-side packaging.

Scan & Fix Now

What This Error Means in Plain English

EPUBCheck detected HTML documents must be encoded in UTF-8, but UTF-16 was detected.. Digital reading systems and bookstores require standard conformance to ensure compatibility across all reading apps.

Why Retailers & EAA Regulations Block This File

Automated book distributors (Apple Books, Amazon KDP, Kobo, and IngramSpark) run strict EPUBCheck validation on ingest and reject non-compliant files.

Technical Specification: W3C EPUBCheck rule HTM-058: HTML documents must be encoded in UTF-8, but UTF-16 was detected.

Manual Fix Instructions (for Sigil / Calibre)

  1. Locate the file and line flagged under rule HTM-058 in your EPUB editor (Sigil or Calibre).
  2. Apply the required syntax correction matching the HTM-058 specification.
  3. Re-pack and validate with PreFlight EPUB to confirm zero residual errors.