From c4440919b94ed785b950256ede6b6e8905a24703 Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Fri, 3 Mar 2017 01:26:53 -0500 Subject: [PATCH] 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 --- Open-ILS/src/sql/Pg/002.functions.config.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/sql/Pg/002.functions.config.sql b/Open-ILS/src/sql/Pg/002.functions.config.sql index 6ebdf1da20..7eaed4cdc1 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) ) -- 2.43.2