in reply to Re: CGI fails to urlencode & chars in outbound url's
in thread CGI fails to urlencode & chars in outbound url's
I have now found a CGI::escapeHTML() function in the perldoc CGI, but not a CGI:escape()? Your snippet works (for me also) though so it is obviously there, I just can't find any docs to it.
The perldoc CGI suggests that escapeHTML() will (often automatically if autoescaping is on, which it is by default and I haven't changed it) handle the conversion of & to &, but this contradicts the evidence I am seeing - which would cause me to re-evaluate the evidence except that:
1) I can see that the spaces are being escaped to %20, but the & stays resolutely unchanged.
2) Adding URI::uri_escape() around $path/$_ in the original line, cures my problem.
However, escapeHTML seems to be dependant (I haven't understood the docs fully yet) upon having or using character set of ISO-8859-1?
I'm passing this along incase this is something that isn't confined to just my system/OS.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: CGI fails to urlencode & chars in outbound url's
by projekt21 (Friar) on Jun 12, 2002 at 15:39 UTC | |
by BrowserUk (Patriarch) on Jun 12, 2002 at 17:01 UTC | |
by Anonymous Monk on Aug 01, 2005 at 13:10 UTC |