Package Structure · E-ENC
Non-UTF-8 encoded content file
One of your chapter files isn't encoded as UTF-8, which can cause garbled text or validator failures on Kindle.
Error: Non-UTF-8 encoded content file
Category: Package Structure
Severity: error
Auto Repair: Supported
Rule ID: E-ENC
Affected: KDP=reject, Apple=reject, Google=warning, Kobo=warning
Check this automatically with Cermify
Why this happens
- Chapter saved as Windows-1252 / ISO-8859-1 while XML declares UTF-8.
- Missing or conflicting charset in XML declaration vs HTTP-equiv meta.
- Copy/paste from a legacy tool that wrote a different code page.
- Binary corruption mistaken for text encoding issues (less common).
How platforms treat it
| Platform | Result |
| KDP | reject |
| Apple Books | reject |
| Google Play | warning |
| Kobo | warning |
How Cermify detects it
- Read each content document's declared encoding.
- Detect bytes that are invalid in the declared encoding or strongly indicate another code page.
- Flag non-UTF-8 chapter/CSS/XML resources used by the package.
- Note mismatches between declaration and actual bytes.
Automatic repair
Cermify can transcode many legacy single-byte chapter files to UTF-8 and normalize XML declarations. Always proof special characters (curly quotes, em dashes, accented letters) after conversion.
Manual fix
- Open the flagged file in an editor that shows encoding.
- Convert to UTF-8 (without BOM preferred for XHTML).
- Set encoding="UTF-8" in the XML declaration and remove conflicting meta charset values.
- Repackage and confirm characters render correctly on device preview.
Examples
Content documents should be UTF-8 with a matching declaration.
Incorrect
<?xml version="1.0" encoding="ISO-8859-1"?>
<html xmlns="http://www.w3.org/1999/xhtml">…
Correct
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">…
FAQ
Is a UTF-8 BOM allowed?
Some pipelines accept BOM; others warn. Prefer UTF-8 without BOM for XHTML in EPUBs.
Why do only some chapters fail?
Exporters sometimes mix encodings when chapters were edited in different tools. Fix each flagged file.
Does this affect fonts?
E-ENC is about text resource encoding, not font binaries. See E-FONT for font declaration issues.
Related errors
References
- EPUB / XML encoding requirements
- Cermify Rule Set kdp-epub-2026-07