> Hi to all,
> 
> I'm having bad times trying to solve this problem.
> 
> I've to read from a Webserver-logfile some text indicating what page have been 
> visited, and
> tracking the querystring parameters.
> 
> The problem is that in the logfile special chars are traslated in "web safe" format 
> as you can see
> below

> http%3a%2f%2fdba%2eadtech%2ede%2fr30%2fdem_r%2easp%3fG%3d167F0G0G22G160G24G4

> How can I obtain the original string?

Hi,
what you want is the CPAN module URI::Escape (in the URI package).

Example:
use URI::Escape;

my $uri_string = 
"http%3a%2f%2fdba%2eadtech%2ede%2fr30%2fdem_r%2easp%3fG%3d167F0G0G22G160G24G4";

my $plain_string = uri_unescape($uri_string);

Works a treat.

________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
________________________________________________________________________

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to