[Koha-patches] [biblibre-sopac] ilsdi.pl : character encoding declaration update

henridamien.laurent at biblibre.com henridamien.laurent at biblibre.com
Thu Oct 1 13:57:11 CEST 2009


From: Paul Poulain <paul.poulain at biblibre.com>

xml declaration of charset is now set to utf8
---
 opac/ilsdi.pl |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/opac/ilsdi.pl b/opac/ilsdi.pl
index 18f424d..1a97abe 100755
--- a/opac/ilsdi.pl
+++ b/opac/ilsdi.pl
@@ -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
 );
-- 
1.5.6.5




More information about the Koha-patches mailing list