perl-unicode

Does Tie::UrlEncoder version 0.02 do the right thing?

2009-04-25 09:33:51
Currently it tries to build CGI-encoded strings with

     use bytes;
     $result =~ s{([^ 0-9a-zA-Z\$\-_\.\!\*\(\)\,])}
                 {sprintf("%%%02X",ord($1))}ge;
     no bytes;

I suspect that may not work right for code points 128-255.  Or will
it, since the receiving end will be expecting utf8?

Please reply directly.

-- 
"There are a lot of people who don't wear seat belts," Collette said.
"They say 'Oh, my air bag will protect me.' An air bag will kill you.
An air bag will rip your head off if you're not belted in." --
graftontimes.com

<Prev in Thread] Current Thread [Next in Thread>
  • Does Tie::UrlEncoder version 0.02 do the right thing?, David Nicol <=