title: Exporting to CSV CP1252 West encoding french accent characters not converting
body: <p>I am exporting customer names (and street addresses) form my e-commerce store and we have many French customer names that are causing some issues with the export to CSV. I thought I had fixed it by using utf8_decode() as follows:</p>
  
  <pre><code>echo utf8_decode($row['billing_name']) . ",";
  </code></pre>
  
  <p>The $row['billing_name'] is coming from a simply while loop from a mysqli database query.</p>
  
  <p>but for example Stéphane Perry  is exporting as: St√©phane Perry  in the csv file</p>
  
  <p>I checked the database and the encoding set on the customer field is CP1252 West Which I assume is to account for french accents so I don't think I want to mess with the encoding on there and I am hoping for fix I can use during the export.</p>