[Koha-patches] [PATCH 5/7] [MT2306_2271] Fixed an encoding bug in the documentation
Henri-Damien LAURENT
henridamien.laurent at biblibre.com
Fri Feb 26 21:37:47 CET 2010
From: Jean-André Santoni <jeanandre.santoni at biblibre.com>
Moved the binmode pragma to the end of the file, so it won't affect documentation templates. So no more double encoding.
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent at biblibre.com>
---
opac/ilsdi.pl | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/opac/ilsdi.pl b/opac/ilsdi.pl
index b1a8203..6cca985 100755
--- a/opac/ilsdi.pl
+++ b/opac/ilsdi.pl
@@ -226,6 +226,7 @@ if ( $service and any { $service eq $_ } @services ) {
}
# Output XML by passing the hashref to XMLOut
+binmode(STDOUT, ":utf8");
print CGI::header('-type'=>'text/xml', '-charset'=>'utf-8');
print XMLout(
$out,
--
1.6.3.3
More information about the Koha-patches
mailing list