"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 5: don't forget to increase your free space map settings