Blob.js
Blob.js copied to clipboard
Invalid blobSupported detection
The problem is the line: blobSupported = new Blob (['ä']). size === 2; // Check if Blob constructor supports ArrayBufferViews Check This and This If the character encoding is Windows-1250, then blobSupported is FALSE!
could we change ['ä']
to ['\u00e4']
maybe?
Now it is working! I checked on FF, Chrome, Edge. I am asking you to introduce this amendment to blob.js.
Created a PR...
But why don't you switch to utf8? Using any other then utf8 seems just ... well ... unwise?
http://codel10n.com/why-utf8-is-best-encoding-for-your-customers/
The WEB application was created many years ago. Its improvement is quite complex.
Will the change be introduced to the official version of blob.js? I am using jsPDF, which uses blob.js.
eligrey is not responseable for any npm package, you should contact the others