Skip to content

Commit dfbb892

Browse files
authored
Docs: DOC-3355 - URIs with non-Latin1 characters were returning an error (#4077)
1 parent ec63fda commit dfbb892

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,13 @@ The background color of accordion items in the TinyMCE AI Review list has been u
275275

276276
// CCFR here.
277277

278+
=== URIs with non-Latin1 characters were returning an error
279+
// #TINY-13938
280+
281+
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.
282+
283+
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.
284+
278285
=== Alert and confirm dialogs were not announced properly by some screen readers
279286
// #TINY-13812
280287

0 commit comments

Comments
 (0)