help unescape 
Author Message
 help unescape

Hi,

I am trying to write cgi-script using perl.
It seems the text that I get from Netscape, has been converted with javascript escape sequence.

here is my html
<html>
<body>
<form method="POST" action="/cgi-bin/testform">
Enter text: <textarea rows="10" cols="60" name="fred"></textarea><br>
<input type="submit" value="submit">
</form>
</body>
</html>

when I type in Hello, there
I get fred=Hello%2C there

here is my perl script
#!/usr/bin/perl

$!=1;

print "Content-type: text/html\n\n";
print "\n";

read (STDIN, $form, ENV{'CONTENT_LENGTH'});


        ($name, $value) = split (/=/, $pair);

        $value =~ tr/+/ /;

        print "$name=$value\n";

Quote:
}

could you tell me what do I have to do so the text that I get from perl is in mornal format instead of getting some hexvalue for a certain characters.

I appreciate if you could e-mail me the reply to


Thanks in advance.
- Haris -



Fri, 14 Jan 2000 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. problems with escape/unescape

2. FAQ 4.20 How do I unescape a string?

3. FAQ 4.20 How do I unescape a string?

4. FAQ 4.20 How do I unescape a string?

5. FAQ 4.20 How do I unescape a string?

6. FAQ 4.20 How do I unescape a string?

7. FAQ 4.20 How do I unescape a string?

8. FAQ 4.20 How do I unescape a string?

9. FAQ 4.20 How do I unescape a string?

10. FAQ 4.20 How do I unescape a string?

11. FAQ: How do I unescape a string?

12. FAQ: How do I unescape a string?

 

 
Powered by phpBB® Forum Software