title: Convert Microsoft Curly Quotes to Straight Quotes in PHP
body: <p>I am having a really hard time trying to fix a Clients Database records.  I need to Find and Replace all Curly Quotes which look like this <code>“</code> with  Straight Quotes <code>"</code></p>
  
  <p><img src="https://i.stack.imgur.com/G5BdW.png" alt="enter image description here"></p>
  
  <p><strong>Attempt 1</strong><br>
  I have tried to run this on my MySQL database with no luck.  </p>
  
  <pre><code>update wp_posts set post_content = replace(post_content,'“','"');
  </code></pre>
  
  <p><strong>Attempt 2</strong><br>
  I have also tried search and replace in PHP with the below, with no luck as well</p>
  
  <pre><code>&lt;?php
  $str = ' “evil curly quotes“ no "good straight quotes"';
  str_replace ('“', '"', $str);
  
  echo $str;
  
  // Prints:
  // “evil curly quotes“ no "good straight quotes"
  ?&gt;
  </code></pre>
  
  <p>Please help me anyone, there has to be an easy way to do this besides manually editing thousands of records?</p>