polish: try 'data:application/csv;charset=utf-8,' + encodeURIComponent(csv); instead of type: 'text/csv' createObjectURL for csv download~