in reply to CGI fails to urlencode & chars in outbound url's

http://www.somedomain/script.pl?Range=./things/Chalk%20&%20Cheese/

&amp; in html is the ampersand character. That is also true for within href attributes. If you don't believe me, have a look at this link: <a href="/&amp;&amp;&amp;">. Your code works. It is probably the space that confuses your script.pl.

- Yes, I reinvent wheels.
- Spam: Visit eurotraQ.

Replies are listed 'Best First'.
Re: Re: CGI fails to urlencode & chars in outbound url's
by BrowserUk (Patriarch) on Jun 12, 2002 at 11:15 UTC

    Sorry! I forgot that I don't need to entity encrypt the & within the <code> sections.

    It is definately the & that is (was! Using uri_encode() fixed it) the problem.

    If I can work out how I edit the node, I will correct that!