in reply to Can the "#" character be passed via $ENV{QUERY_STRING} ?

>You need to url encode it

Forgot to include that I've tried using %23 in place of the "#" character, but the enocding appears to be interpreted literally, and the the QUERY_STRING print "%23".

I believe I understand the anchor issue .... just trying to find if there's an easy way out that would allow me to include the # character ;) ... laziness as a virtue kinda thing.

  • Comment on Re: Can the "#" character be passed via $ENV{QUERY_STRING} ?

Replies are listed 'Best First'.
Re^2: Can the "#" character be passed via $ENV{QUERY_STRING} ?
by Tanktalus (Canon) on Feb 24, 2005 at 23:39 UTC

    Of course %23 appears literally in QUERY_STRING. The recommendation was to use CGI to read your query, and CGI automatically decodes these fields. Doing CGI without using CGI or CGI::Simple is simply asking for problems, and this is probably among the least of those problems.