title: htmlentities not working on single quote
body: <p>I am trying to do a simple convert of single quote (<code>'</code>) to html entity (<code>&amp;#39;</code>) but can not figure out why this is not working.</p>
  
  <pre><code>$test = "Bob's House";
  
  echo htmlentities($test,ENT_QUOTES);
  
  echo htmlspecialchars($test,ENT_QUOTES);
  </code></pre>
  
  <p>Both examples still return: Bob's House</p>
  
  <p>I have tried a combination of flags: ENT_IGNORE, ENT_SUBSTITUTE, etc with no success.</p>
  
  <p>I suspect it has something to do with my charset. If so how do I display my default charset &amp; alter it for this seemingly simple code to work.</p>