title: PHP htmlentities not working even with parameters
body: <p>Of course this has been asked before and have searched for solutions, all which have not worked thus far.  I want to change out the TM symbol and the ampersand to their html equivelents by using <code>htmlentities</code> or <code>htmlspecialchars</code>:</p>
  
  <pre><code>$TEST = "Kold Locker™ &amp; other stuff";
  echo "ORGINIAL: " . $TEST . "&lt;BR/&gt;";
  
  echo "HTML: " . htmlentities($TEST, ENT_COMPAT, 'UTF-8');
  </code></pre>
  
  <p>This displays:</p>
  
  <pre><code>ORGINIAL: Kold Locker™ &amp; other stuff
  HTML: 
  </code></pre>
  
  <p>I have also tried it with <code>htmlspecialchars</code> and the second parameter changed with the same result.</p>
  
  <p>What am I missing that others have claimed worked in other solutions?</p>
  
  <p><strong>UPDATE</strong>: I tried just displaying <code>utf8_encode($TEST)</code> and it displayed <code>HTML: Kold LockerÂ™ &amp; other stuff</code></p>