char codes passed using querystring

in my script in get values that are passed to it by using this code

                         read (STDIN, $QueryString, $DataLength);
                         $QueryString = $ENV{'QUERY_STRING'};

                         #Splitting the pairs and putting them in a list
                         @NameValuePairs = split (/&/, $QueryString);  

the problem is that i want to send
french characters in the querystring
these characters look all funny when print them.....

for instance if i have a capital A with a little line over it starting from bottom right and going to the top left (ascii code #192) and i try to print it after it is put into querystring i get

how can i be sure that the codes will remain unaffected?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

use URI::Escape;
$str  = uri_unescape($safe);

where $safe is the escaped string.

URI is a perl module which can be downloaded from CPAN:
foreach (@NameValuePairs){
  tr/+/ / ;
  ($name,$value)=  split(/=/) ;
  $value=~ s/%(..)/pack("c",hex($1))/ge ;  
$name=~s/%(..)/pack("c",hex($1))/ge ;   $in{$name} = $value;

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
boofullsAuthor Commented:
malec's answer was easier to use....
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.