title: How to convert Windows-1252 characters to values in php?
body: <p>We have several database fields that contain Windows-1252 characters:</p>
  
  <pre><code>an example painâ€” if youâ€™re
  </code></pre>
  
  <p>Those values map to the desired values from this list:</p>
  
  <p><a href="http://www.i18nqa.com/debug/utf8-debug.html" rel="noreferrer">http://www.i18nqa.com/debug/utf8-debug.html</a></p>
  
  <p>I've tried various permutations of htmlentites, mb_detect_encoding, uft8_decode, etc, but have not yet been able to transform those values to:</p>
  
  <p>an example pain &mdash; if you're</p>
  
  <p>How can I transform these characters to their listed values in php?</p>