Bug 14592: Export data bad encoding
Tools > Export data produces a file badly encoded, when marc/xml file
format is chosen. It works with CSV.
To test:
1. Tools > Export data
2. Choose a limited interval of biblionumber
3. Export in marc/xml/csv.
4. Check files exported at 3: csv file is ok. marc/xml files are
corrupted, ie badly encoded.
5. Apply the patch
6. Repeat steps 3&4, and confirm that all file formats are valid.
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit dfe07fa410)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
parent
d14d01d760
commit
c0f40ce040
|
|
@ -166,7 +166,8 @@ if ( $op eq "export" ) {
|
|||
|
||||
binmode STDOUT, ':encoding(UTF-8)'
|
||||
if $filename =~ m/\.gz$/
|
||||
or $filename =~ m/\.bz2$/;
|
||||
or $filename =~ m/\.bz2$/
|
||||
or $output_format ne 'csv';
|
||||
|
||||
if ( $filename =~ m/\.gz$/ ) {
|
||||
$mimetype = 'application/x-gzip';
|
||||
|
|
|
|||
Loading…
Reference in New Issue