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.
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.
anyone got any suggestions?#!/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;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: uri_unescape not correct
by shmem (Chancellor) on Apr 02, 2007 at 08:18 UTC | |
Re: uri_unescape not correct
by Joost (Canon) on Apr 02, 2007 at 11:43 UTC | |
Re: uri_unescape not correct
by valdez (Monsignor) on Apr 02, 2007 at 07:18 UTC | |
by rsiedl (Friar) on Apr 02, 2007 at 07:40 UTC |
Back to
Seekers of Perl Wisdom