title: PHP urlencoding issue
body: <p>My php file is in UTF-8 encoding and I am trying to encode my data for safe sending into application but some characters get encoded incorrectly.</p>
  
  <pre><code>$text = "Š";
  $text = urlencode(utf8_decode($text));
  echo $text;
  </code></pre>
  
  <p>Echos %3F but according to w3c urlencoding reference found here (http://www.w3schools.com/tags/ref_urlencode.asp), "Š" should be converted into %8A. Php's own reference also does not state what reference is it using. Could this be encoding/decoding issue or something else?</p>