"Vitali Stupin" <[EMAIL PROTECTED]> writes:
> If database uses UTF8 encoding, then spi_exec_query in plperl should return
> query results in UTF8 encoding. But unfortunately only data is marked as
> UTF8, while column names are not.
It looks to me like basically everywhere in plperl.c that does newSVpv()
should follow it with
#if PERL_BCDVERSION >= 0x5006000L
if (GetDatabaseEncoding() == PG_UTF8)
SvUTF8_on(sv);
#endif
whereas currently there are only a couple of places that do that.
I'm tempted to consolidate this into a function on the order of
newSVstring(const char *) or some such. Comments?
regards, tom lane
---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to [EMAIL PROTECTED] so that your
message can get through to the mailing list cleanly