plperlu problem with utf8

Oleg Bartunov <oleg@sai.msu.su>

From: Oleg Bartunov <oleg@sai.msu.su>
To: Pgsql Hackers <pgsql-hackers@postgresql.org>
Date: 2010-12-08T15:13:01Z
Lists: pgsql-hackers
Hi there,

below is the problem, which I don't have when running in shell. The database is 
in UTF-8 encoding.

CREATE OR REPLACE FUNCTION url_decode(Vkw varchar) RETURNS varchar  AS $$
     use strict;
     use URI::Escape;
     return uri_unescape($_[0]); 
$$ LANGUAGE plperlu;
CREATE FUNCTION
Time: 1.416 ms
select url_decode('comment%20passer%20le%20r%C3%A9veillon');
           url_decode 
------------------------------
  comment passer le rveillon
                   ^
                  non-printed

 	Regards,
 		Oleg
_____________________________________________________________
Oleg Bartunov, Research Scientist, Head of AstroNet (www.astronet.ru),
Sternberg Astronomical Institute, Moscow University, Russia
Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(495)939-16-83, +007(495)939-23-83