CSS-003
Updated:
EPUBCheck CSS-003 is a warning message: “CSS document is encoded in UTF-16. It should be encoded in UTF-8 instead.” A CSS file is encoded in UTF-16; UTF-8 is recommended.
The official message
CSS document is encoded in UTF-16. It should be encoded in UTF-8 instead.
- Default severity
- Warning. The EPUB is still valid, but something is likely to cause problems in some reading apps. EPUBCheck exits with 0 unless you pass --failonwarnings.
- EPUBCheck version
- 5.4.0
Typical causes
- A stylesheet saved in UTF-16 by an editor.
How to fix it
- Re-save the file as UTF-8, and change any @charset rule to "UTF-8".
Terms used here
Other CSS messages
CSS-002Empty or NULL reference found.CSS-004CSS documents must be encoded in UTF-8, detected …;CSS-001The "…" property must not be included in an EPUB Style Sheet.CSS-006CSS selector specifies fixed position.CSS-007Font-face reference "…" refers to non-standard font type "…".CSS-008An error occurred while parsing the CSS: ….
Message text and severity from EPUBCheck 5.4.0 (W3C, BSD-3-Clause). Explanation by EPUBLab.