From: Dan Scott Date: Fri, 3 Mar 2017 06:26:53 +0000 (-0500) Subject: LP#1442276 Encode UTF8 output of XSLT transforms X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=5f796d1a6eb6e7fc902e3465981aabef63ad0934;p=Evergreen.git LP#1442276 Encode UTF8 output of XSLT transforms The XML::LibXSLT::output_string() method was deprecated in favour of output_as_bytes() and output_as_chars(). The latter always generates UTF8 output as characters, which is what we need, while output_string() behaviour depended on the stylesheet. Signed-off-by: Dan Scott Signed-off-by: Kathy Lussier --- diff --git a/Open-ILS/src/sql/Pg/002.functions.config.sql b/Open-ILS/src/sql/Pg/002.functions.config.sql index d52c6f9684..22a4977590 100644 --- a/Open-ILS/src/sql/Pg/002.functions.config.sql +++ b/Open-ILS/src/sql/Pg/002.functions.config.sql @@ -91,7 +91,7 @@ CREATE OR REPLACE FUNCTION evergreen.oils_xslt_process(TEXT, TEXT) RETURNS TEXT $_SHARED{'_xslt_process'}{stylesheets}{$xslt} = $stylesheet unless ($_SHARED{'_xslt_process'}{stylesheets}{$xslt}); - return $stylesheet->output_string( + return $stylesheet->output_as_chars( $stylesheet->transform( $parser->parse_string($doc) )