http://qs1969.pair.com?node_id=607763

rsiedl has asked for the wisdom of the Perl Monks concerning the following question:

hi monks,

i have a script that retrieves several urls from a webpage. the urls are already uri_escaped and i would like to unescape them. the problem is they contain special characters from other languages which are not being unescaped correctly.
#!/usr/bin/perl use strict; use warnings; use URI::Escape; my $terms = "%22Celades%22+%22Aspectos+cl%C3%ADnicos+*+*+menopausia%22 +"; # uri_unescape($terms); # should return: # "Celades"+"Aspectos+clínicos+*+*+menopausia" # actually returns: # "Celades"+"Aspectos+clínicos+*+*+menopausia" print uri_unescape($terms); exit;
anyone got any suggestions?