From: Dan Scott Date: Fri, 3 Mar 2017 06:40:19 +0000 (-0500) Subject: LP#1442276 Prevent corrupted Unicode chars in MARCTXT and RIS X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d6b620262f4dc883b14cedf0c4225d3ef145755e;p=working%2FEvergreen.git 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 Signed-off-by: Kathy Lussier --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat/Feed.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat/Feed.pm index 2cb401fb19..56146cb988 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat/Feed.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat/Feed.pm @@ -793,7 +793,7 @@ sub toString { searchClass => "'$class'", ); - return $marctxt_xslt->output_string($new_doc); + return $marctxt_xslt->output_as_bytes($new_doc); } @@ -845,7 +845,7 @@ sub toString { searchClass => "'$class'", ); - return $ris_xslt->output_string($new_doc); + return $ris_xslt->output_as_bytes($new_doc); }