Fixed an encoding bug in the documentation

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>
This commit is contained in:
Jean-André Santoni 2010-02-26 21:37:47 +01:00 committed by Galen Charlton
parent 9428e750f0
commit d4260af339

View file

@ -228,6 +228,7 @@ if ( $service and any { $service eq $_ } @services ) {
} }
# Output XML by passing the hashref to XMLOut # Output XML by passing the hashref to XMLOut
binmode(STDOUT, ":utf8");
print CGI::header('-type'=>'text/xml', '-charset'=>'utf-8'); print CGI::header('-type'=>'text/xml', '-charset'=>'utf-8');
print XMLout( print XMLout(
$out, $out,