Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

parallel-universe

Member since
parallel-universe

Recent Docs Activity

View all activity
Page Date Comment

Base64 encoding and decoding


Base64 encoding and decoding


Revert to revision of 2016-05-10 13:29:37 by todofixthis: "The decode script I provided presented issues on further testing. Some amendment should still be made to this page to ensure it is communicated that this will fail upon encountering certain charac

Base64 encoding and decoding


The decode method did not work, whitespace characters are not encoded properly and cause the decodeURIComponent method to return a Malformed URI exception. The updated code addresses this issue.