Convert non unicode string to base64 in JavaScript?
===

I'm doing a downloader chrome extension. I'm trying to fetch the file with ajax and encoding it with`atob(str)`but it only allows plain string so can't get the `data:blah,base64`working. Anyone got a library or so?

Ps:sorry for bad English. 