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 @@
  • Mapping: jquery-mobile -> ajax.googleapis.com (#564)
  • Updated: highlight.js v11.0.1 -> v11.1.0 (#565)
  • Updated: socket.io v4.1.2 -> v4.1.3 (#566)
  • +
  • Fixed: Default cahrset of HTML filter (#567)
  • Includes also the following changes, because the release of this version took a long time caused by a broken validation server of Mozilla (More information).