Bugzilla – Attachment 177496 Details for
Bug 39023
Add utf8 output to CSV output of overdue_notices.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch to set the correct encoding for the CSV output file
0001-Bug-39023-Ffix-encoding-in-CSV-output-file.patch (text/plain), 1014 bytes, created by
davewood
on 2025-02-04 10:51:08 UTC
(
hide
)
Description:
patch to set the correct encoding for the CSV output file
Filename:
MIME Type:
Creator:
davewood
Created:
2025-02-04 10:51:08 UTC
Size:
1014 bytes
patch
obsolete
>From fa7b1c1ee43ce4a17ef9cc6f43aadb777a67dfa4 Mon Sep 17 00:00:00 2001 >From: David Schmidt <davewood@gmx.at.at> >Date: Tue, 4 Feb 2025 11:48:07 +0100 >Subject: [PATCH] Bug 39023: Ffix encoding in CSV output file > >--- > misc/cronjobs/overdue_notices.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/misc/cronjobs/overdue_notices.pl b/misc/cronjobs/overdue_notices.pl >index 3a70377..27de141 100755 >--- a/misc/cronjobs/overdue_notices.pl >+++ b/misc/cronjobs/overdue_notices.pl >@@ -419,7 +419,7 @@ if ( defined $csvfilename ) { > if ( $csvfilename eq '' ) { > $csv_fh = *STDOUT; > } else { >- open $csv_fh, ">", $csvfilename or die "unable to open $csvfilename: $!"; >+ open $csv_fh, ">:encoding(UTF-8)", $csvfilename or die "unable to open $csvfilename: $!"; > } > if ( $csv->combine(qw(name surname address1 address2 zipcode city country email phone cardnumber itemcount itemsinfo branchname letternumber)) ) { > print $csv_fh $csv->string, "\n"; >-- >2.39.5 >
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 39023
:
177496
|
177507