plperlu problem with utf8 - Mailing list pgsql-hackers

From Oleg Bartunov
Subject plperlu problem with utf8
Date
Msg-id Pine.LNX.4.64.1012081803160.12632@sn.sai.msu.ru
Whole thread Raw
Responses Re: plperlu problem with utf8
List 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


pgsql-hackers by date:

Previous
From: Dmitriy Igrishin
Date:
Subject: Re: pg_type.typname of array types.
Next
From: Marti Raudsepp
Date:
Subject: Re: We really ought to do something about O_DIRECT and data=journalled on ext4