[Koha-patches] [PATCH] [bug #2684]Fix the CSV export, provide it in UTF-8

Nahuel Angelinetti nahuel.angelinetti at biblibre.com
Thu Oct 16 14:48:14 CEST 2008


---
 reports/guided_reports.pl |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/reports/guided_reports.pl b/reports/guided_reports.pl
index 390243e..71c21f2 100755
--- a/reports/guided_reports.pl
+++ b/reports/guided_reports.pl
@@ -397,6 +397,8 @@ elsif ($phase eq 'Run this report'){
 }	
 
 elsif ($phase eq 'Export'){
+    binmode STDOUT, ':utf8';
+
 	# export results to tab separated text
 	my $sql = $input->param('sql');
         my $format = $input->param('format');
-- 
1.5.4.3




More information about the Koha-patches mailing list