diff --git a/core/manipulate-dom.js b/core/manipulate-dom.js index bf765b5a..39a5c6db 100644 --- a/core/manipulate-dom.js +++ b/core/manipulate-dom.js @@ -97,7 +97,10 @@ manipulateDOM._removeCrossOriginAndIntegrityAttr = function (details) { if (EncodingTypes[charsetMatch[1].toLowerCase()] !== undefined) { charset = charsetMatch[1]; } else { - charset = 'UTF-8'; + // If charset is unclear, then use ASCII by default. + // Other charsets are mostly tagged in the header or HTML source code. + // https://codeberg.org/nobody/LocalCDN/issues/567 + charset = 'ASCII'; } } decoder = new TextDecoder(charset); diff --git a/pages/updates/updates.html b/pages/updates/updates.html index 3f036782..5336fadb 100644 --- a/pages/updates/updates.html +++ b/pages/updates/updates.html @@ -62,6 +62,7 @@