php function to decode arabic text in url to percent encoding like firefox
<p>i have this url</p>

<pre><code>http://al-mashhad.com/News/النيابة-تستمع-لأقوال-خالد-يوسف-في-بلاغه-ضد-أبو-إسم/141274.aspx
</code></pre>

<p>firefox change it to</p>

<pre><code>http://al-mashhad.com/News/%D8%A7%D9%84%D9%86%D9%8A%D8%A7%D8%A8%D8%A9-%D8%AA%D8%B3%D8%AA%D9%85%D8%B9-%D9%84%D8%A3%D9%82%D9%88%D8%A7%D9%84-%D8%AE%D8%A7%D9%84%D8%AF-%D9%8A%D9%88%D8%B3%D9%81-%D9%81%D9%8A-%D8%A8%D9%84%D8%A7%D8%BA%D9%87-%D8%B6%D8%AF-%D8%A3%D8%A8%D9%88-%D8%A5%D8%B3%D9%85/141274.aspx
</code></pre>

<p>i want php function to do that task</p>

<p>i tryied <a href="http://php.net/manual/en/function.urlencode.php" rel="nofollow">urencode()</a>, but its do that</p>

<pre><code>http%3A%2F%2Fal-mashhad.com%2FNews%2F%D8%A7%D9%84%D9%86%D9%8A%D8%A7%D8%A8%D8%A9-%D8%AA%D8%B3%D8%AA%D9%85%D8%B9-%D9%84%D8%A3%D9%82%D9%88%D8%A7%D9%84-%D8%AE%D8%A7%D9%84%D8%AF-%D9%8A%D9%88%D8%B3%D9%81-%D9%81%D9%8A-%D8%A8%D9%84%D8%A7%D8%BA%D9%87-%D8%B6%D8%AF-%D8%A3%D8%A8%D9%88-%D8%A5%D8%B3%D9%85%2F141274.aspxstring(296) "http://al-mashhad.com%2FNews%2F%D8%A7%D9%84%D9%86%D9%8A%D8%A7%D8%A8%D8%A9-%D8%AA%D8%B3%D8%AA%D9%85%D8%B9-%D9%84%D8%A3%D9%82%D9%88%D8%A7%D9%84-%D8%AE%D8%A7%D9%84%D8%AF-%D9%8A%D9%88%D8%B3%D9_-%D9_%D9%8A-%D8%A8%D9%84%D8%A7%D8%BA%D9%87-%D8%B6%D8%AF-%D8%A3%D8%A8%D9%88-%D8%A5%D8%B3%D9%85%2F141274.aspx"
</code></pre>

<p>and i want it change the arabic text only, just like mozilla firefox</p>

<p>because its corrupt http:// and /</p>
