title: Javascript to csv export encoding issue
body: <p>I need to export javascript array to excel file and download it I'm doing it in this code.     data is a javascript object array. </p>
  
  <pre><code>var csvContent = "data:text/csv;charset=utf-8,";
  data.forEach(function(dataMember, index)
  {
      dataString = dataMember.join(",");
      csvContent += index &lt; data.length ? dataString+ "\n" : dataString;
  }); 
  
  var encodedUri = encodeURI(csvContent);
  var link = document.createElement("a");
  link.setAttribute("href", encodedUri);
  link.setAttribute("download", "upload_data" + (new Date()).getTime() + ".csv");
  link.click();
  </code></pre>
  
  <p>All this stuff works fine till I have string properties that have non-english characters, like spanish, arabic or hebrew. How can I make an export with all this non-ASCII values?</p>