Bugzilla – Attachment 104252 Details for
Bug 24163
Add ability to define a CSV profile for late orders export
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24163: UTF-8 encode the output
Bug-24163-UTF-8-encode-the-output.patch (text/plain), 959 bytes, created by
Jonathan Druart
on 2020-05-04 09:04:02 UTC
(
hide
)
Description:
Bug 24163: UTF-8 encode the output
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-05-04 09:04:02 UTC
Size:
959 bytes
patch
obsolete
>From 4e3b6d4f85f1549e2791ba725c1d004646ea94d1 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Sat, 2 May 2020 15:57:16 +0200 >Subject: [PATCH] Bug 24163: UTF-8 encode the output > >Specify the UTF-8 charset in the header and Encode the output to avoid encoding issues >--- > acqui/lateorders-export.pl | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/acqui/lateorders-export.pl b/acqui/lateorders-export.pl >index 31e21a8e75..397535428c 100755 >--- a/acqui/lateorders-export.pl >+++ b/acqui/lateorders-export.pl >@@ -17,6 +17,7 @@ > > use Modern::Perl; > use CGI qw ( -utf8 ); >+use Encode; > > use C4::Auth; > use C4::Acquisition; >@@ -87,7 +88,8 @@ unless ( $csv_profile_id ) { > print $input->header( > -type => 'text/csv', > -attachment => 'lateorders.csv', >+ -charset => 'UTF-8', > ); >- print $csv; >+ print Encode::encode_utf8($csv); > exit; > } >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 24163
:
97120
|
97121
|
97122
|
97123
|
98691
|
98692
|
102185
|
102186
|
102257
|
102258
|
103585
|
103586
|
104192
|
104193
|
104194
|
104252
|
104337
|
104338
|
104339
|
104340
|
104341