LP 1463943: More Encoding Improvements. user/driscoll/lp1463943_encoded_response_signoff
authorJason Stephenson <jason@sigio.com>
Mon, 2 Jan 2017 15:20:59 +0000 (10:20 -0500)
committerMartha Driscoll <driscoll@noblenet.org>
Fri, 21 Jul 2017 17:27:00 +0000 (13:27 -0400)
commit95efe258e90579c89c2ea8567afc06ae089ed4d9
tree3553c3b9d29a80fda3001397d3eb57f2b6600430
parent18dc1192cde5fbf5321370e66173db620fe78d82
LP 1463943: More Encoding Improvements.

First, we improve the encoding search by looking in the institution
config proper.  The search order for an encoding is now:

1. An encoding attribute specified in the account tag.

2. An encoding tag in the institution tag.

3. An encoding tag in the implementation_config tag of the institution
tag as a last resort.

4. Use ASCII if none is set.  (The SIP2 specification practially
requires this.)

The last is done for backward compatibility with existing Evergreen
oils_sip.xml files.  This should be deprecated in the near future and
only the account tag and institution tag proper should be supported.

Second, we improve the handling of ASCII output by stealing a code
chunk from Evergreen's OILS::SIP->clean_text routine to remove
combining characters on strings.

Third, we remove the encoding attribute from the sample SIPconfig.xml
account tag for lpl-sc, and put an encoding tag in the institution
tags for LPL and UWOLS.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Martha Driscoll <driscoll@noblenet.org>
SIPconfig.xml
Sip.pm
Sip/MsgType.pm