Blog
JavaScript – Base64 Data URLs Outside of the Latin1 Range
It is often handy to create downloadable content on the fly using JavaScript. Sometimes you may want to do so while also encoding the contents as base64. That is where the btoa() function comes in handy. Here is an example of doing just that: As you can see by clicking Read more…