Exporting Options in SisenseJS
Published 03-17-2023
UPD:
In order to apply proper encoding to returned body, please replace:
const type = csvDownload const type = csvDownloader.getResponseHeader('Content-Type');
const blob = typeof File === 'function'
? new File([this.response], filename, { type: type })
: new Blob([this.response], { type: type });
with
const type = 'text/csv;charset=utf-8'
const utf8BOM = new Uint8Array([0xEF, 0xBB, 0xBF])
const blob = new Blob([utf8BOM, this.response], {type:type})
Best regards,
Illia