Bugzilla – Attachment 104341 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), 1017 bytes, created by
Katrin Fischer
on 2020-05-05 06:40:29 UTC
(
hide
)
Description:
Bug 24163: UTF-8 encode the output
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2020-05-05 06:40:29 UTC
Size:
1017 bytes
patch
obsolete
>From 2a375251457e165715f136b2b49666f4e86f1cfc 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 > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > 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.11.0
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