Resolve encoding problem found by attempting to register patrons with Unicode names
authordbs <dbs@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 22 Feb 2011 14:28:19 +0000 (14:28 +0000)
committerdbs <dbs@9efc2488-bf62-4759-914b-345cdb29e865>
Tue, 22 Feb 2011 14:28:19 +0000 (14:28 +0000)
commit0a42d01a036a8e6a9a077c6dc7e35313918a5783
treec664e3d50fbab5576f3a8fa904ba4ddb3c4badf5
parent7ff6bdd13691f7f4610b37dd5ef440ccabb20673
Resolve encoding problem found by attempting to register patrons with Unicode names

Symptoms were:

1. a gateway.log entry showing http_translator receiving an XMPP error message
2. a corresponding osrfsys.log entry "server: died with error Wide character in syswrite at /usr/local/share/perl5/OpenSRF/Server.pm line 239"

Per normal Perl Unicode handling practices, decoding input and encoding output
using the Encode module and decode_utf8() / encode_utf8() appears to resolve
the problem.

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@2168 9efc2488-bf62-4759-914b-345cdb29e865
src/perl/lib/OpenSRF/Server.pm