KC LO at MAXIS wrote, on Saturday, May 27, 2000 12:32
: Is there a way to re-convert characters like ' # ', @, $,%,^,& etc from
an HTML page to it's orginal : form instead of the '%21% ' ? I'm passing
data from HTML page to a MAccess database using ODBC by the : following
method:-
:
: read(STDIN, $query , $ENV{'CONTENT_LENGTH'});
:
: using the standard STDIN method to read contents  from a HTML page.
:
: Or should I use a different method? I'm not using perl CGI in this
script.

First, please post in plain text to the mailing list. Thanks.

The strings you're getting are URL-encoded. You need to URL-decode them.
Try
looking through the CGI.pm module for the function you need (you don't need
to 'use CGI', but you can clip that function).

It should look something like:
        s/%([a-fA-F0-9][a-fA-F0-9])/pack(  .. blah blah .. )/eg;

I forget exactly what goes in the "pack" part, but it's something like
        pack(C, $1)
but I can't say for sure.

Joe

==============================================================
          Joseph P. Discenza, Sr. Programmer/Analyst
               mailto:[EMAIL PROTECTED]

          Carleton Inc.   http://www.carletoninc.com
          219.243.6040 ext. 300    fax: 219.243.6060

Providing Financial Solutions and Compliance for over 30 Years


---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
         [EMAIL PROTECTED]
For non-automated Mailing List support, send email to  
         [EMAIL PROTECTED]

Reply via email to