From 50d89d422f9c68a52a6964e5468e8eb4f90b1d95 Mon Sep 17 00:00:00 2001 From: Andrew Dunstan Date: Sun, 6 Feb 2011 17:29:26 -0500 Subject: Force strings passed to and from plperl to be in UTF8 encoding. String are converted to UTF8 on the way into perl and to the database encoding on the way back. This avoids a number of observed anomalies, and ensures Perl a consistent view of the world. Some minor code cleanups are also accomplished. Alex Hunsaker, reviewed by Andy Colson. --- doc/src/sgml/plperl.sgml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'doc/src') diff --git a/doc/src/sgml/plperl.sgml b/doc/src/sgml/plperl.sgml index dd8695834fe..4150998808c 100644 --- a/doc/src/sgml/plperl.sgml +++ b/doc/src/sgml/plperl.sgml @@ -125,6 +125,14 @@ $$ LANGUAGE plperl; + + + Arguments will be converted from the database's encoding to UTF-8 + for use inside plperl, and then converted from UTF-8 back to the + database encoding upon return. + + + If an SQL null valuenull valuein PL/Perl is passed to a function, -- cgit v1.2.3