ilsdi.pl : character encoding declaration update
authorPaul Poulain <paul.poulain@biblibre.com>
Thu, 1 Oct 2009 11:55:10 +0000 (13:55 +0200)
committerPaul Poulain <paul.poulain@biblibre.com>
Thu, 1 Oct 2009 11:55:10 +0000 (13:55 +0200)
xml declaration of charset is now set to utf8

opac/ilsdi.pl

index 18f424d..1a97abe 100755 (executable)
@@ -215,13 +215,13 @@ if ( $service and grep { $service eq $_ } @services ) {
 }
 
 # Output XML by passing the hashref to XMLOut
-print CGI::header('text/xml');
+print CGI::header('-type'=>'text/xml', '-charset'=>'utf-8');
 print XMLout(
     $out,
     noattr        => 1,
     noescape      => 1,
     nosort        => 1,
-    xmldecl       => '<?xml version="1.0" encoding="ISO-8859-1" ?>',
+    xmldecl       => '<?xml version="1.0" encoding="UTF-8" ?>',
     RootName      => $service,
     SuppressEmpty => 1
 );