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>
($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");