Failed to execute ‘btoa’ on ‘Window’: The string to be encoded contains characters outside of the Latin1 range.

The error in the title is thrown only in Google Chrome, according to my tests. I’m base64 encoding a big XML file so that it can be downloaded: this.loader.src = “https://stackoverflow.com/questions/23223718/data:application/x-forcedownload;base64,”+ btoa(“<?xml version=\”1.0\” encoding=\”utf-8\”?>” +”<“+this.gamesave.tagName+”>” +this.xml.firstChild.innerHTML +”</”+this.gamesave.tagName+”>”); this.loader is hidden iframe. This error is actually quite a change because normally, Google Chrome would crash upon … Read more

How to save CSS changes of Styles panel of Chrome Developer Tools?

How to save CSS changes of Styles panel of Google Chrome Developer Tools? At tool’s website it’s mentioned that we can see all change in resource panel But I’m working locally on a CSS file but changes are not showing in Resource panel for me By the way Do you know any add-ons , tools … Read more

Resource interpreted as Document but transferred with MIME type application/zip

With Chrome 12.0.742.112, if I redirect with the following headers: HTTP/1.1 302 Found Location: http://0.0.0.0:3000/files/download.zip Content-Type: text/html; charset=utf-8 Cache-Control: no-cache X-Ua-Compatible: IE=Edge X-Runtime: 0.157964 Content-Length: 0 Server: WEBrick/1.3.1 (Ruby/1.9.2/2011-02-18) Date: Tue, 05 Jul 2011 18:42:25 GMT Connection: Keep-Alive Which if followed returns the following header: HTTP/1.1 200 OK Last-Modified: Tue, 05 Jul 2011 18:18:30 GMT … Read more