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>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
searchClass => "'$class'",
);
- return $marctxt_xslt->output_string($new_doc);
+ return $marctxt_xslt->output_as_bytes($new_doc);
}
searchClass => "'$class'",
);
- return $ris_xslt->output_string($new_doc);
+ return $ris_xslt->output_as_bytes($new_doc);
}