https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32012
--- Comment #2 from Fridolin Somers <[email protected]> --- Created attachment 142701 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=142701&action=edit Bug 32012: runreport.pl should use binmode UTF-8 Like Bug 26832 added binmode UTF-8 to script misc/search_tools/export_elasticsearch_mappings.pl, this should be added to misc/cronjobs/runreport.pl. Test plan : 1) Do not apply patch 2) Create a SQL report with : S SELECT 'accentué',barcode FROM items limit 3 3) Note the id of this report, for example 1 4) Run : misc/cronjobs/runreport.pl 1 --format csv | tee /tmp/without.csv => You see output with unknown char instead of é : accentu<?>,1 accentu<?>,2 accentu<?>,3 5) Run : file --mime-type /tmp/without.csv => You see : /tmp/without.csv: iso-8859-1 6) Apply patch 7) Run : misc/cronjobs/runreport.pl 1 --format csv | tee /tmp/with.csv => You see correct output : accentuÃ,1 accentuÃ,2 accentuÃ,3 8) Run : file --mime-type /tmp/without.csv => You see : /tmp/without.csv: utf-8 -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
