Skip to content

chromium: preserve UTF-8 in HTML data URLs - #26

Open
Ramblurr wants to merge 1 commit into
HazAT:mainfrom
Ramblurr:fix/chromium-utf8-data-url
Open

chromium: preserve UTF-8 in HTML data URLs#26
Ramblurr wants to merge 1 commit into
HazAT:mainfrom
Ramblurr:fix/chromium-utf8-data-url

Conversation

@Ramblurr

Copy link
Copy Markdown

The Chromium CDP backend builds data:text/html;base64,... URLs without declaring a charset. Chromium decodes UTF-8 payloads as Windows-1252, so characters render as gibberish (for example, 🚀 becomes 🚀).

This change declares charset=utf-8 on the data URL and adds an integration assertion that round-trips page2 ✕ Close 🚀 Cool! through setHTML(). The Chromium suite passes with 36 tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant