LP 1463943: More Encoding Improvements. user/dyrcona/lp1463943_encoded_response
authorJason Stephenson <jason@sigio.com>
Mon, 2 Jan 2017 15:20:59 +0000 (10:20 -0500)
committerJason Stephenson <jason@sigio.com>
Tue, 3 Jan 2017 01:09:57 +0000 (20:09 -0500)
commit36807880a5f19ee9a6c0be253f35a915e1a09485
tree3553c3b9d29a80fda3001397d3eb57f2b6600430
parent4ccc426e8e5589a2fe61d13e5dede2eabaf04962
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>
SIPconfig.xml
Sip.pm
Sip/MsgType.pm