failed to execute 'btoa' on 'window' the string to be encoded contains characters outside code example
Example: Uncaught DOMException: Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.
btoa(unescape(encodeURIComponent(str)))