Okay - let me start over.
I have a Javascript that generates a piece of information that I want
written to a file on my server.
I used this in the Javascript to send it to a Perl Script:
_________________________________
var i=new Image();
i.src="http://www.mydomain.com/cgi-bin/write.pl?" + user;
______________________________________
Then I use the following Perl script (write.pl) to send the data to my text
file:
________________________________
#!/usr/bin/perl
use CGI::Carp qw( fatalsToBrowser );
$isdata= $ENV{QUERY_STRING};
# Set $data_file to the location and name of the file in question.
my $data_file = '/usr/home/mydomain/public_html/data1.txt';
open (DATA, "+>>$data_file") or die "can't open $data_file $!";
print DATA "$isdata";
{
print "$_\n";
}
close (DATA);
__________________________________
My problem is that the data arrives to the text file with '%20' in place of
the spaces.
ie: "This%20is%20the%20data"
I would like the '%20' converted back to spaces.
I have been playing with 'unescape()' but I can't seem to get it to work
(user error I'm sure).
Any help would be appreciated.