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?