You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I copy the code to the page, the website is clean and the console displays the following error message:
"react-dom.production.min.js:2857 Uncaught DOMException: Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range."
I searched from the internet,The reason seems to be this:
This error indicates that a string that does not conform to the Latin1 character set range was passed while using the btoa function. The Latin1 character set (also known as ISO-8859-1) contains most commonly used Latin letters and numbers, but excludes Chinese characters and some other common non-Latin characters.
To solve this problem, you need to transcode the strings so that they conform to the range of the Latin1 character set. This can be done using JavaScript's encodeURIComponent function, for example:
varstr="这是一个包含中文字符的字符串";varencodedStr=encodeURIComponent(str);// now you can use btoa safelyvarbase64Str=btoa(encodedStr);
could you please fix this problem?thank you very much!
When I copy the code to the page, the website is clean and the console displays the following error message:
"react-dom.production.min.js:2857 Uncaught DOMException: Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range."
I searched from the internet,The reason seems to be this:
This error indicates that a string that does not conform to the Latin1 character set range was passed while using the btoa function. The Latin1 character set (also known as ISO-8859-1) contains most commonly used Latin letters and numbers, but excludes Chinese characters and some other common non-Latin characters.
To solve this problem, you need to transcode the strings so that they conform to the range of the Latin1 character set. This can be done using JavaScript's encodeURIComponent function, for example:
could you please fix this problem?thank you very much!
Your website(https://www.jsv9000.app/) is very good!
The text was updated successfully, but these errors were encountered: