D
diegodpf1
I used to encode values before sending thru a GET or POST request like
this:
$var =~ s/([\W])/"%".uc(sprintf("%2.2x",ord($1)))/eg;
$var =~ s/%20/+/g;
But recently, I realized that my browser IE6.0 is doing it differently.
For instance:
"ã" after encoded by IE6.0 is "%C3%A3"
"ã" after encoded by my script is "%E3"
So, my question is:
How can I encode like my browser does? I've looked for an answer at
Google, but all I found were different ways to produce the same result
my script already does, I couldn't find an way to produce a result
equal to IE's.
this:
$var =~ s/([\W])/"%".uc(sprintf("%2.2x",ord($1)))/eg;
$var =~ s/%20/+/g;
But recently, I realized that my browser IE6.0 is doing it differently.
For instance:
"ã" after encoded by IE6.0 is "%C3%A3"
"ã" after encoded by my script is "%E3"
So, my question is:
How can I encode like my browser does? I've looked for an answer at
Google, but all I found were different ways to produce the same result
my script already does, I couldn't find an way to produce a result
equal to IE's.