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

Conversation

zhangbiggs
Copy link

@zhangbiggs zhangbiggs commented Sep 8, 2017

some languge in javascript unicode by utf-8 ,etc chinese  japenese ...
Since DOMStrings are 16-bit-encoded strings, in most browsers calling window.btoa on a Unicode string will cause a Character Out Of Range exception if a character exceeds the range of a 8-bit byte (0x00~0xFF). There are two possible methods to solve this problem:
https://developer.mozilla.org/en-US/docs/Web/API/WindowBase64/Base64_encoding_and_decoding
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.

1 participant