You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0d6f927
Browse filesBrowse the repository at this point in the historyBrowse files
feat: update the reporting of file encoding issues
This commit changes the errors and warnings reported when EPUBCheck
detects an invalid or non-recommended file encoding.
The following errors codes are now reported:
- `RSC-027` (new): warning reported for XML documents encoded in UTF-16
- `RSC-028` (new): error reported for XML documents in an invalid encoding
- `HTM-058` (new): error reported for XHTML encoded in UTF-16
(the HTML standard has an authoring requirement for UTF-8)
- `CSS-003` (updated): warning reported for CSS encoded in UTF-16
- `CSS-004` (updated): error reported for CSS in an invalid encoding
Note: previously both `CSS-003` and `CSS-004` were errors, reported for
a disallowed encoding. The only difference is that one was reported when
the encoded was detected from a BOM, the other from a `@charset`
declaration.
This commit repurposes `CSS-003` as the warning raised for UTF-16, and
`CSS-004` as the disallowed-encoding error.
Fixes#1245
0 commit comments