php url to absolute function now work with spaces and arabic chars
<p>i have these functions <a href="http://code.google.com/p/archivepress/source/browse/trunk/archivepress_plugin/archivepress/classes/url_to_absolute/?r=93" rel="nofollow">url_to_absolute</a> its work good but not work if the image url has space or arabic chars</p>

<p><strong>this working example</strong></p>

<pre><code>&lt;?php
    require_once('url_to_absolute.php');
    $url = 'http://site.com/news/view.aspx?id=23032012';
    echo url_to_absolute($url, '/uploadedimages/Sections/Politics/Arabic_World/original/Administrative-detention.jpg'), "\n";
    ?&gt;
look here if we have space in "Arabic World"
&lt;?php
    require_once('url_to_absolute.php');
    $url = 'http://site.com/news/view.aspx?id=23032012';
    echo url_to_absolute($url, '/uploadedimages/Sections/Politics/Arabic World/original/Administrative-detention.jpg'), "\n";
?&gt;
</code></pre>

<p>it will not work and if there is arabic chars too</p>
