Skip to content

Commit 8b373f5

Browse files
committed
Docs: DOC-3355 - URIs with non-Latin1 characters were returning an error
1 parent 9378169 commit 8b373f5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

modules/ROOT/pages/8.5.0-release-notes.adoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,13 @@ For information on using Enhanced Skins & Icon Packs, see: xref:enhanced-skins-a
110110

111111
// CCFR here.
112112

113+
=== URIs with non-Latin1 characters were returning an error
114+
// #TINY-13938
115+
116+
Previously, inserting images with data URIs that contained non-Latin 1 characters, such as SVG data URIs with a byte order mark (BOM), caused {productname} to throw an `InvalidCharacterError`. This occurred because {productname} used the `btoa` function to encode data URIs to base64, and `btoa` does not support characters outside the Latin 1 range. The error could cause the editor to hang or fail to process the image.
117+
118+
In {productname} {release-version}, data URIs are now encoded using `TextEncoder` before being passed to `btoa`, ensuring that non-Latin 1 characters are handled correctly. Images with data URIs containing such characters are now processed without errors.
119+
113120

114121
[[security-fixes]]
115122
== Security fixes

0 commit comments

Comments
 (0)