Re: invalid UTF-8 via pl/perl
Andrew Dunstan <andrew@dunslane.net>
From: Andrew Dunstan <andrew@dunslane.net>
To: Hannu Krosing <hannu@2ndquadrant.com>
Cc: pgsql-hackers@postgresql.org
Date: 2010-01-03T01:51:22Z
Lists: pgsql-hackers
Attachments
- perl-utf8.patch (text/x-patch) patch
Andrew Dunstan wrote: > > I think the plperl glue code should check returned strings using > pg_verifymbstr(). > > Please test this patch. I think we'd probably want to trap the encoding error and issue a customised error message, but this plugs all the holes I can see with the possible exception of values inserted via SPI calls. I'll check that out. cheers andrew