Answers for "js decode base64 utf8"

0

js decode base64 utf8

const ok = "a";
console.log(ok.codePointAt(0).toString(16)); //   61: occupies < 1 byte

const notOK = "✓"
console.log(notOK.codePointAt(0).toString(16)); // 2713: occupies > 1 byte

console.log(btoa(ok));    // YQ==
console.log(btoa(notOK)); // error
Posted by: Guest on May-18-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language