How to Convert a javascript object to utf-8 Blob for download?
问题 I've been trying to find a solution that works but couldn't find one. I have an object in javascript and it has some non-english characters in it. I'm trying the following code to convert the object to a blob for download. When I click to download the content, when opening the downloaded JSON the non-English characters are gibberish. It's a simple object like this one: {name: "שלומית", last: "רעננה"} function setJSONForDownload(obj) { obj = obj || []; // obj is the array of objects with non