Fixed an encoding bug in the documentation
authorJean-André Santoni <jeanandre.santoni@biblibre.com>
Fri, 26 Feb 2010 20:37:47 +0000 (21:37 +0100)
committerGalen Charlton <gmcharlt@gmail.com>
Wed, 17 Mar 2010 00:54:45 +0000 (20:54 -0400)
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@biblibre.com>
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>

opac/ilsdi.pl

index 0935a68..c979e72 100755 (executable)
@@ -228,6 +228,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,