JavaScript: Base64 encoding and decoding

Posted by Unknown On Tuesday, July 11, 2017 0 comments
atob(): Decodes a string of data which has been encoded using base-64 encoding.
btoa(): Creates a base-64 encoded ASCII string from a "string" of binary data.

The "Unicode Problem": In most browsers, calling btoa() on a Unicode string will cause a Character Out Of Range exception. This paragraph shows some solutions.

Solution to unicode

0 comments:

Post a Comment