ref 18034: Support export csv with Firefox and Safari

https://support.d4science.org/issues/18034

Updated csv export
This commit is contained in:
Giancarlo Panichi 2019-11-12 13:55:43 +01:00
parent 3cddab592a
commit 975779d8e4
1 changed files with 2 additions and 2 deletions

View File

@ -183,7 +183,7 @@ public class Chart extends HTMLPanel {
}
var csvData=heading+"\n"+datasetRow + "\n";
var csvDataEncoded=encodeURIComponent(csvData);
var csvDataEncoded=encodeURI(csvData);
csvContent += csvDataEncoded;
} else {
var datasetRow = seriesData.getLabel();
@ -192,7 +192,7 @@ public class Chart extends HTMLPanel {
datasetRow += "," + recordData.getY();
}
var csvData=datasetRow + "\n";
var csvDataEncoded=encodeURIComponent(csvData);
var csvDataEncoded=encodeURI(csvData);
csvContent += csvDataEncoded;
}
}