Skip to content

astral character support in chrome and IE #142

@SheetJSDev

Description

@SheetJSDev
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");

The character codes in the string are

[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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions