Bug 16578: Same fix for the staff interface

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Works as first patch
No errors

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2016-05-25 18:09:27 +01:00 committed by Kyle M Hall
parent 7d4844e171
commit 3948102f2a
1 changed files with 3 additions and 0 deletions

View File

@ -69,6 +69,9 @@ if ($op eq "export") {
($error, $marc) = marc2marc($marc, 'marcstd', C4::Context->preference('marcflavour'));
$format = "marcstd";
}
if ( $format =~ /utf8/ or $format =~ /marcstd/ ) {
binmode STDOUT, ':encoding(UTF-8)';
}
print $query->header(
-type => 'application/octet-stream',
-attachment=>"bib-$biblionumber.$format");