Re: [BUGS] BUG #2683: spi_exec_query in plperl returns - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [BUGS] BUG #2683: spi_exec_query in plperl returns
Date
Msg-id 1716.1160950527@sss.pgh.pa.us
Whole thread Raw
In response to Re: [BUGS] BUG #2683: spi_exec_query in plperl returns  ("Andrew Dunstan" <andrew@dunslane.net>)
Responses Re: [BUGS] BUG #2683: spi_exec_query in plperl returns  (Martijn van Oosterhout <kleptog@svana.org>)
List pgsql-hackers
"Andrew Dunstan" <andrew@dunslane.net> writes:
> I am also wondering, now that it's been raised, if we need to issue a "use
> utf8;" in the startup code, so that literals in the code get the right
> encoding.

Good question.  I took care to ensure that the code strings passed to
Perl are marked as UTF8; perhaps that makes it happen implicitly?
If not, are there any downsides to issuing "use utf8"?
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Andrew Dunstan"
Date:
Subject: Re: [BUGS] BUG #2683: spi_exec_query in plperl returns
Next
From: David Fetter
Date:
Subject: Re: [BUGS] BUG #2683: spi_exec_query in plperl returns