title: Replacing ’ character in PHP
body: <p>I'm having a hard time trying to replace this weird right single quote character. I'm using str_replace like this:</p>
  
  <p><code>str_replace("’", '\u1234', $string);</code></p>
  
  <p>It looks like I cannot figure out what character the quote really is. Even when I copy paste it directly from PHPMyAdmin it still doesn't work. Do I have to escape it somehow?</p>
  
  <p><em>The character:</em>  <a href="http://www.lukomon.com/Afbeelding%204.png" rel="nofollow noreferrer" title="The character.">http://www.lukomon.com/Afbeelding%204.png</a></p>
  
  <ul>
  <li>MySQL Charset:  UTF-8 Unicode (utf8)</li>
  <li>MySQL Collations: utf8_unicode_ci</li>
  <li><code>&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;</code></li>
  </ul>
  
  <p>EDIT:
  It turned out to be a Microsoft left single quote which I could replace with <a href="https://stackoverflow.com/questions/1262038/how-to-replace-microsoft-encoded-quotes-in-php">this function</a> from Phill Paffords comment. Not sure which answer I should mark now..</p>