URI::Escape can do this for you.

# perl -MURI::Escape -e 'print \
uri_unescape("%D7%91%D7%A8%D7%99%D7%AA")' > esc.txt

The contents of esc.txt:

\xd7\x91\xd7\xa8\xd7\x99\xd7\xaa

Do what you need to with the output.

Cheers,
Kevin

On Sat, Oct 05, 2002 at 08:25:31AM -0700, Kevin ([EMAIL PROTECTED]) said something 
similar to:
> Hello,
> 
> I need to progrmatically decode the following UTF-8 data via CGI:
> 
> q=%D7%91%D7%A8%D7%99%D7%AA
> 
> Can this be done?
> 
> -Kevin
> 
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
[Writing CGI Applications with Perl - http://perlcgi-book.com]
There's a pizza place near where I live that sells only slices.
in the back you can see a guy tossing a triangle in the air.
        -- Steven Wright

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

Reply via email to