#!/usr/bin/perl use strict; use warnings; use URI::Escape; use Encode qw(from_to); 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" $_ = uri_unescape ($terms); from_to ($_,"utf-8","iso-8859-1"); print $_,"\n";
That should do. It seems there's no uri_unescape_utf8 in URI::Escape.
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
In reply to Re: uri_unescape not correct
by shmem
in thread uri_unescape not correct
by rsiedl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |