Skip to content
This repository has been archived by the owner on Nov 4, 2023. It is now read-only.

Fix utf8 support for dataUri base64 #15

Merged
merged 6 commits into from
Dec 28, 2019
Merged

Fix utf8 support for dataUri base64 #15

merged 6 commits into from
Dec 28, 2019

Conversation

lydell
Copy link
Owner

@lydell lydell commented Dec 27, 2019

Continuation of #14. Closes #13.

@xiaoxiangmoe I failed to push to your branch so I’m opening a new PR.


function decodeBase64String(b64) {
if (typeof TextDecoder === "undefined" || typeof Uint8Array === "undefined") {
return atob(b64)
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed the warning because I’m worried it would spam the console. I don’t think many people will end up here though.

@lydell
Copy link
Owner Author

lydell commented Dec 28, 2019

@xiaoxiangmoe If this looks good to you I can merge and make a release in a couple of days.

Copy link
Contributor

@xiaoxiangmoe xiaoxiangmoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks Good To Me.

@lydell lydell changed the title Utf8 Fix utf8 support for dataUri base64 Dec 28, 2019
@lydell lydell merged commit ff057d4 into master Dec 28, 2019
@lydell lydell deleted the utf8 branch December 28, 2019 19:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Garbled characters appear when sourcesContent contains Chinese characters
2 participants