From 43002c3b0e1659edc910cae435c3715a46e80a76 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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Bernardo Gonzalez Kriegel Works as first patch No errors Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall (cherry picked from commit 3948102f2ad6e5382a31a00df0c8f52def3daf58) Signed-off-by: Frédéric Demians --- 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.2