The stupid question is the question not asked | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
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. In reply to Re: Re: CGI fails to urlencode & chars in outbound url's
by BrowserUk
|
|