in reply to Parsing "&" from header.
The URL should be encoded asSanford & Sons
Note that the spaces are encoded as plus signs, and the ampersand is encoded with a %26 (the hexadecimal value for ASCII '&')....&bar=foo&company=Sanford+%26+Sons&foo=bar&...
The docs of the CGI module discuss how to specify application/x-www-form-urlencoded to your FORM tag, to have your browser encode these elements for you. The CGI module can then do the parsing correctly.
--
[ e d @ h a l l e y . c c ]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Parsing "&" from header.
by Anonymous Monk on Mar 26, 2004 at 14:52 UTC |