Base64 rewrite btoa and atob #619
Replies: 3 comments
-
I have created an issue related to this one. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Rumyra
-
Closing as answered/settled. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This is a question regarding a rewrite section of btoa and atob
https://developer.mozilla.org/en-US/docs/Glossary/Base64#solution_2_%E2%80%93_rewriting_atob_and_btoa_using_typedarrays_and_utf-8
In the code section above (nside a function to convert binary string to UTF-8 (strToUTF8Arr)) charCodeAt return value between (0 and 65535) as of (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/charCodeAt). Should it be using codePointAt?
Beta Was this translation helpful? Give feedback.
All reactions