@<span class="ik"></span>Earnie: I am not sure if this is affecting, but I will check it out.<br><br>I am using the following to solve the problem, any ideas to improve it in terms of efficiency or otherwise are welcome:<br>
<br>function encodeurl($url) {<br> $reserved = array(<br> ":" => '!%3A!ui',<br> "/" => '!%2F!ui',<br> "?" => '!%3F!ui',<br> "#" => '!%23!ui',<br>
"[" => '!%5B!ui',<br> "]" => '!%5D!ui',<br> "@" => '!%40!ui',<br> "!" => '!%21!ui',<br> "$" => '!%24!ui',<br>
"&" => '!%26!ui',<br> "'" => '!%27!ui',<br> "(" => '!%28!ui',<br> ")" => '!%29!ui',<br> "*" => '!%2A!ui',<br>
"+" => '!%2B!ui',<br> "," => '!%2C!ui',<br> ";" => '!%3B!ui',<br> "=" => '!%3D!ui', <br> );<br><br> $url = rawurlencode(rawurldecode($url));<br>
$url = preg_replace(array_values($reserved), array_keys($reserved), $url);<br> return $url;<br>}<br><br><br clear="all">--<br>Regards,<br>Nitin Kumar Gupta<br><a href="http://publicmind.in/blog/">http://publicmind.in/blog/</a><br>
<br><br><div class="gmail_quote">On Thu, Mar 11, 2010 at 10:01 PM, Earnie Boyd <span dir="ltr"><<a href="mailto:earnie@users.sourceforge.net">earnie@users.sourceforge.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">nitin gupta wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I am currently just testing with spaces. Its strange that the above<br>
wasn't converted to:<br>
<br>
<a href="http://test.com/test%20dfsdaf%20dsfsadf" target="_blank">http://test.com/test%20dfsdaf%20dsfsadf</a><br>
<br>
<br>
on my machine. I am using D6.15 with PHP 5.3.<br>
<br>
</blockquote>
<br></div>
Are you aware of <a href="http://drupal.org/node/360605" target="_blank">http://drupal.org/node/360605</a> ?<div><div></div><div class="h5"><br>
<br>
--<br>
Earnie<br>
-- <a href="http://www.give-me-an-offer.com" target="_blank">http://www.give-me-an-offer.com</a><br>
<br>
</div></div></blockquote></div><br>