var zip = new JSZip();
zip.file("Hello.txt", "<si><t>🍣 is ng</t></si>");
var content = zip.generate({type:"blob"});
// see FileSaver.js
saveAs(content, "example.zip");
[60, 115, 105, 62, 60, 116, 62, 55356, 57187, 32, 105, 115, 32, 110, 103, 60, 47, 116, 62, 60, 47, 115, 105, 62]
In firefox, the string is properly written. The equivalent code in nodejs 0.10 is correct. However, in chrome, the content is not correct.
The character codes in the string are
In firefox, the string is properly written. The equivalent code in nodejs 0.10 is correct. However, in chrome, the content is not correct.