Kevin wrote: > 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?
You didn't say what form you wanted the results in. use strict; use URI::Escape; use HTML::Entities; my $q = '%D7%91%D7%A8%D7%99%D7%AA'; print "$q\n"; # unescape the CGI data my $str = uri_unescape ($q); print "$str\n"; # if you like, you can convert to HTML entities print HTML::Entities::encode_entities ($str), "\n"; print "\n"; __END__ or some other intent ?? -- ,-/- __ _ _ $Bill Luebkert ICQ=162126130 (_/ / ) // // DBE Collectibles Mailto:[EMAIL PROTECTED] / ) /--< o // // http://dbecoll.tripod.com/ (Free site for Perl) -/-' /___/_<_</_</_ Castle of Medieval Myth & Magic http://www.todbe.com/ _______________________________________________ Perl-Win32-Web mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs