Backport SIP Server patches from trunk: r15260, r15267, r15268
r15260: Enable the SIP server to speak UTF8 or ASCII, defaulting to ASCII
Some SIP clients have implemented UTF8 support, and it is desirable to
avoid mangling non-ASCII characters when possible, so a new <encoding>
option in the SIPServer config file enables sites to specify an
alternate encoding (such as "utf8"). The example oils_sip.xml file
will continue to default to ASCII, and if no <encoding> option is
supplied in the config file, ASCII will be the default.
In addition, this patch improves the ASCII option by applying the
ASCII mangling to all text fields, as well as ensuring that the
incoming data is in Normalization Form D mode to make the mangling
work cleanly.
Other encodings such as iso-8859-1 can be specified, but to properly
handle other encodings a transliteration phase would have to be added
to the OpenILS::SIP::clean_text()...
r15267: Typo: in theory fixing this will eliminate some calls
r15268: We don't actually have access to the config from $self, but we can get it from OpenILS::SIP
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6@15281
dcc99617-32d9-48b4-a31d-
7c20da2025e4