From 3948102f2ad6e5382a31a00df0c8f52def3daf58 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 25 May 2016 18:09:27 +0100 Subject: [PATCH] Bug 16578: Same fix for the staff interface Signed-off-by: Bernardo Gonzalez Kriegel Works as first patch No errors Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall --- catalogue/export.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/catalogue/export.pl b/catalogue/export.pl index 39cac7c468..f82250db89 100755 --- a/catalogue/export.pl +++ b/catalogue/export.pl @@ -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"); -- 2.39.5