exit 0;
}
+# any output after this point will be UTF-8 XML
+binmode STDOUT, ':encoding(UTF-8)';
+print CGI::header('-type'=>'text/xml', '-charset'=>'utf-8');
+
my $out;
# If ILS-DI module is disabled in System->Preferences, redirect to 404
# GetAvailability is a special case, as it cannot use XML::Simple
if ( $service eq "GetAvailability" ) {
- print CGI::header('text/xml');
print C4::ILSDI::Services::GetAvailability($cgi);
exit 0;
} else {
}
# Output XML by passing the hashref to XMLOut
-binmode(STDOUT, ":utf8");
-print CGI::header('-type'=>'text/xml', '-charset'=>'utf-8');
print XMLout(
$out,
noattr => 1,