PDA

View Full Version : how do i convert characters in perl?


medc
11-24-2005, 04:18 AM
Hi, I need some basic help using perl.

I have a cgi upload script. The script requires the cgi-lib2.pl library.

The script uploads ok and then automatically redirects the user to a PHP script to do some post-upload work. The perl code is this:

print "Location: http://www.domain.net/insert.php?id=$in{'sourcefile'}\n\n";

The problem is that the actual URL that gets sent to the browser contains some weird characters which the PHP script cannot understand:

http://www.domain.net/insert.php?id=ÐÏࡱá

How can I fix this?

Jeff Mott
11-25-2005, 07:48 AM
Since we have no way of knowing what is supposed to be sent in place of those characters we really have no way to identify the problem nor offer a solution.