CARVIEW |
Select Language
HTTP/2 200
date: Fri, 18 Jul 2025 04:45:26 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/w3c/epubcheck.git
etag: W/"5029d31e9305febcc24a17c8e961e14e"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=VN0LvjB84aab9YGoE%2BKBK5kbT0jZ9B%2FWTvpzM6y%2FhRNJOLTqVQc4MA%2FAZBjlWarDoZVQCpCyYgffUCJlq3VrYuMeNSrsLxDRYelLGc2FBLvjnAeDhWVD4ApuKAP7soGw3%2BfpOkq8LCXuePqXIF7xzxhQnncFbeoxVM05nHbozdJwF0leBwX8FKDWJUZ0KjvNBanP5%2BLAWn8bYpGD5MfN4evTj1thFlP53bwfEm2fB7UXfm7E%2Fnein9Ngb6EkU4Uo4h60bbHXPzjlHveT0A9yTA%3D%3D--sqERvNdi3pMpxQaE--fy1hnEdPyhAO2SNYvBiuaQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.890631663.1752813925; Path=/; Domain=github.com; Expires=Sat, 18 Jul 2026 04:45:25 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sat, 18 Jul 2026 04:45:25 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: CE0C:99904:76D656:95E973:6879D165
feat: update the reporting of file encoding issues · w3c/epubcheck@0d6f927 · GitHub
Dismiss banner
Copy file name to clipboardExpand all lines: src/main/java/com/adobe/epubcheck/css/CSSChecker.java
Copy file name to clipboardExpand all lines: src/main/java/com/adobe/epubcheck/messages/DefaultSeverities.java
Copy file name to clipboardExpand all lines: src/main/java/com/adobe/epubcheck/messages/MessageId.java
Copy file name to clipboardExpand all lines: src/main/java/com/adobe/epubcheck/xml/XMLEncodingSniffer.java
Copy file name to clipboardExpand all lines: src/main/java/com/adobe/epubcheck/xml/XMLParser.java
Copy file name to clipboardExpand all lines: src/main/resources/com/adobe/epubcheck/messages/MessageBundle.properties
Copy file name to clipboard
Copy file name to clipboard
Copy file name to clipboard
Copy file name to clipboard
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 418
Commit 0d6f927
committed
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 #12451 parent 111e772 commit 0d6f927Copy full SHA for 0d6f927
File tree
Expand file treeCollapse file tree
43 files changed
+318
-27
lines changedFilter options
- src
- main
- java/com/adobe/epubcheck
- css
- messages
- xml
- resources/com/adobe/epubcheck/messages
- test/resources/epub3
- 03-resources
- files
- 06-content-document
- files
- content-css-encoding-latin1-error
- EPUB
- META-INF
- content-css-encoding-utf16-declared-warning
- EPUB
- META-INF
- content-css-encoding-utf16-not-declared-warning
- EPUB
- META-INF
- content-css-encoding-utf8-declared-valid
- EPUB
- META-INF
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Expand file treeCollapse file tree
43 files changed
+318
-27
lines changedsrc/main/java/com/adobe/epubcheck/css/CSSChecker.java
Copy file name to clipboardExpand all lines: src/main/java/com/adobe/epubcheck/css/CSSChecker.java+15-6Lines changed: 15 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
138 | 138 |
| |
139 | 139 |
| |
140 | 140 |
| |
141 |
| - | |
| 141 | + | |
142 | 142 |
| |
143 |
| - | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
144 | 149 |
| |
145 |
| - | |
146 |
| - | |
| 150 | + | |
147 | 151 |
| |
148 | 152 |
| |
149 |
| - | |
| 153 | + | |
150 | 154 |
| |
151 |
| - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
152 | 161 |
| |
153 | 162 |
| |
154 | 163 |
| |
|
src/main/java/com/adobe/epubcheck/messages/DefaultSeverities.java
Copy file name to clipboardExpand all lines: src/main/java/com/adobe/epubcheck/messages/DefaultSeverities.java+4-1Lines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
69 | 69 |
| |
70 | 70 |
| |
71 | 71 |
| |
72 |
| - | |
| 72 | + | |
73 | 73 |
| |
74 | 74 |
| |
75 | 75 |
| |
| |||
141 | 141 |
| |
142 | 142 |
| |
143 | 143 |
| |
| 144 | + | |
144 | 145 |
| |
145 | 146 |
| |
146 | 147 |
| |
| |||
337 | 338 |
| |
338 | 339 |
| |
339 | 340 |
| |
| 341 | + | |
| 342 | + | |
340 | 343 |
| |
341 | 344 |
| |
342 | 345 |
| |
|
src/main/java/com/adobe/epubcheck/messages/MessageId.java
Copy file name to clipboardExpand all lines: src/main/java/com/adobe/epubcheck/messages/MessageId.java+3Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
135 | 135 |
| |
136 | 136 |
| |
137 | 137 |
| |
| 138 | + | |
138 | 139 |
| |
139 | 140 |
| |
140 | 141 |
| |
| |||
331 | 332 |
| |
332 | 333 |
| |
333 | 334 |
| |
| 335 | + | |
| 336 | + | |
334 | 337 |
| |
335 | 338 |
| |
336 | 339 |
| |
|
src/main/java/com/adobe/epubcheck/xml/EncodingSniffer.java renamed to src/main/java/com/adobe/epubcheck/xml/XMLEncodingSniffer.java
Copy file name to clipboardExpand all lines: src/main/java/com/adobe/epubcheck/xml/XMLEncodingSniffer.java+2-2Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
| 7 | + | |
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
| |||
108 | 108 |
| |
109 | 109 |
| |
110 | 110 |
| |
111 |
| - | |
| 111 | + | |
112 | 112 |
| |
113 | 113 |
| |
114 | 114 |
| |
|
src/main/java/com/adobe/epubcheck/xml/XMLParser.java
Copy file name to clipboardExpand all lines: src/main/java/com/adobe/epubcheck/xml/XMLParser.java+26-4Lines changed: 26 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
| 32 | + | |
32 | 33 |
| |
33 | 34 |
| |
34 | 35 |
| |
| |||
135 | 136 |
| |
136 | 137 |
| |
137 | 138 |
| |
138 |
| - | |
139 |
| - | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
140 | 142 |
| |
141 |
| - | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
142 | 160 |
| |
143 | 161 |
| |
144 | 162 |
| |
| 163 | + | |
| 164 | + | |
| 165 | + | |
145 | 166 |
| |
146 | 167 |
| |
147 | 168 |
| |
| |||
163 | 184 |
| |
164 | 185 |
| |
165 | 186 |
| |
166 |
| - | |
| 187 | + | |
| 188 | + | |
167 | 189 |
| |
168 | 190 |
| |
169 | 191 |
| |
|
src/main/resources/com/adobe/epubcheck/messages/MessageBundle.properties
Copy file name to clipboardExpand all lines: src/main/resources/com/adobe/epubcheck/messages/MessageBundle.properties+8-5Lines changed: 8 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
40 | 40 |
| |
41 | 41 |
| |
42 | 42 |
| |
43 |
| - | |
44 |
| - | |
| 43 | + | |
| 44 | + | |
45 | 45 |
| |
46 | 46 |
| |
47 | 47 |
| |
| |||
68 | 68 |
| |
69 | 69 |
| |
70 | 70 |
| |
71 |
| - | |
| 71 | + | |
72 | 72 |
| |
73 | 73 |
| |
74 | 74 |
| |
| |||
125 | 125 |
| |
126 | 126 |
| |
127 | 127 |
| |
128 |
| - | |
| 128 | + | |
| 129 | + | |
129 | 130 |
| |
130 | 131 |
| |
131 | 132 |
| |
| |||
346 | 347 |
| |
347 | 348 |
| |
348 | 349 |
| |
349 |
| - | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
350 | 353 |
| |
351 | 354 |
| |
352 | 355 |
| |
|
src/test/resources/epub3/03-resources/files/xml-encoding-latin1-declaration-error.opf
Copy file name to clipboard+16Lines changed: 16 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + |
src/test/resources/epub3/03-resources/files/xml-encoding-unknown-declared-error.opf
Copy file name to clipboard+16Lines changed: 16 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + |
src/test/resources/epub3/03-resources/files/xml-encoding-utf16-BOM-and-utf8-declaration-warning.opf
Copy file name to clipboard1.28 KB
Binary file not shown.
src/test/resources/epub3/03-resources/files/xml-encoding-utf16-BOM-no-declaration-warning.opf
Copy file name to clipboard1.21 KB
Binary file not shown.
You can’t perform that action at this time.
0 commit comments