title: Javascript export CSV encoding utf-8 issue
body: <p>I need to export javascript array to CSV file and download it. I did it but <strong>'ı,ü,ö,ğ,ş'</strong> this characters looks like <strong>'Ä± Ã¼ Ã¶  ÄŸ ÅŸ'</strong> in the CSV file. I have tried many solutions recommended on this site but didn't work for me.</p>
  
  <p>I added my code snippet, Can anyone solve this problem?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var csvString = 'ı,ü,ö,ğ,ş';
  
  var a = window.document.createElement('a');
  a.setAttribute('href', 'data:text/csv; charset=utf-8,' + encodeURIComponent(csvString));
  a.setAttribute('download', 'example.csv');
  a.click();</code></pre>
  </div>
  </div>
  </p>