Force strings passed to and from plperl to be in UTF8 encoding.
authorAndrew Dunstan <andrew@dunslane.net>
Sun, 6 Feb 2011 22:29:26 +0000 (17:29 -0500)
committerAndrew Dunstan <andrew@dunslane.net>
Sun, 6 Feb 2011 22:29:26 +0000 (17:29 -0500)
commit50d89d422f9c68a52a6964e5468e8eb4f90b1d95
tree88b3bced2c0e54c12241b60853e33811079f9ce2
parent5ed45ac09c604555740e7365a722b641f3bce498
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
src/pl/plperl/SPI.xs
src/pl/plperl/Util.xs
src/pl/plperl/plperl.c
src/pl/plperl/plperl_helpers.h [new file with mode: 0644]