LP#1442276 Prevent corrupted Unicode chars in MARCTXT and RIS
authorDan Scott <dscott@laurentian.ca>
Fri, 3 Mar 2017 06:40:19 +0000 (01:40 -0500)
committerDan Scott <dscott@laurentian.ca>
Fri, 3 Mar 2017 06:47:57 +0000 (01:47 -0500)
commitdf58247cdf606be3407c759011ce0c326fa6e1ce
tree3e8d89480d6187bca9c21276f65e8c2c4af7d6c8
parent6a5479ed3576bd284dd9fd83dac337a44f11ccb7
LP#1442276 Prevent corrupted Unicode chars in MARCTXT and RIS

The MARCTXT and RIS feeds use the deprecated XML::LibXSLT::output_string()
method which, depending on the stylesheet, generated either a byte string
or characters. Using output_as_bytes() ensures it is always a byte string
and avoids the resulting MARCTXT and RIS output from corrupting Unicode
characters.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat/Feed.pm