}
}
- # Ensure the data is encoded as UTF8 before we hand it off
- $marcxml = encode_utf8($marc->as_xml_record());
+ $marcxml = $marc->as_xml_record();
$marcxml =~ s/^<\?xml version="1.0" encoding="UTF-8"\?>//o;
}
);
}
- print $cgi->header( -type => 'application/xml' );
+ print $cgi->header( -type => 'application/xml', -charset => 'UTF-8' );
print $U->entityize($resp->asXML) . "\n";
return Apache2::Const::OK;
}
);
}
- print $cgi->header( -type => 'application/xml' );
+ print $cgi->header( -type => 'application/xml', -charset => 'UTF-8' );
print $U->entityize($resp->asXML) . "\n";
return Apache2::Const::OK;
}