title: PHP URL Encoding/Decoding Pretty Quotes across form field's %u2019
body: <p>For some reason, after submitting a string like this <code>Jack’s Spindle</code> from a text form to php, I get:</p>
  
  <p><code>Jack%u2019s Spindle</code></p>
  
  <p>This is <em>not</em> what PHP's <code>urlencode()</code> would do, which would be <code>Jack%92s+Spindle</code>
  or <code>rawurlencode()</code> = <code>Jack%92s%20Spindle</code></p>
  
  <p>Thus, <code>urldecode()</code> and the raw version don't work to decode that string... Is there another function for such strings?</p>
  
  <p>--</p>
  
  <p>Also, <code>Jack&amp;#8217;s Spindle</code> would be the HTML-safe way to encode the above, but <code>urlencode()</code> and raw* for that yields: <code>Jack%26%238217%3Bs+Spindle</code> and <code>Jack%26%238217%3Bs%20Spindle</code> respectively...</p>
  
  <p>Where is the <code>%u2019</code> coming from? What does it represent? How do you get it back to just that innoculous apostrophe?</p>