Koha/misc/cronjobs
Fridolin Somers 83fe95d0c5 Bug 22323: cronjob runreport.pl CSV add encoding
Cronjob runreport.pl runs SQL reports and can export as CSV.
This export needs to be UTF-8 encoded.

This pathes replaces use of Text::CSV_XS by Text::CSV::Encoded like in other places like tools/viewlog.pl.
It adds a decode of headers bcause they will be encoded lika other lines.

Test plan:
1) Create a new item with itemnotes 'accentué'
2) Create a SQL report with :
SELECT barcode,itemnotes AS itè FROM items WHERE itemnotes LIKE 'accenté'
3) Run this report
4) You see well encoded header and content
5) Run from command line (replace X by report number) :
misc/cronjobs/runreport.pl X --format=csv --csv-header --store-results
6) You well encoded header and content
7) Go to saved reports table
8) Look at saved results of report
9) You well encoded header and content

Signed-off-by: Mikaël Olangcay Brisebois <mikael.olangcay-brisebois@inLibro.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2019-02-19 13:52:14 +00:00
..
holds Bug 21698: (QA follow-up) Fix typo verbosev -> verbose 2018-10-31 13:49:19 +00:00
rss Bug 21526: Use the 'url' filter when needed 2018-11-12 16:35:43 -03:00
social_data
thirdparty Bug 21640: Enable output to STDOUT for Itiva outbound script 2018-11-02 10:33:08 +00:00
advance_notices.pl
automatic_item_modification_by_age.pl
automatic_renewals.pl Bug 15494: Update display of renewal errors 2018-11-07 21:39:38 +00:00
backup.sh
batch_anonymise.pl
build_browser_and_cloud.pl
cart_to_shelf.pl
check-url-quick.pl Bug 21122: Fix check-url-quick when utf8 characters in URL's 2018-08-02 10:21:43 -03:00
check-url.pl
cleanup_database.pl
cloud-kw.pl
cloud-sample.conf
CONFIGURE.gmail
create_koc_db.pl
crontab.example Bug 21235: Remove table services_throttle 2018-09-07 15:09:39 +00:00
delete_expired_opac_registrations.pl
delete_items.pl
delete_patrons.pl Bug 20915: Use date --iso-8601 instead of date +%Y-%m-%d 2018-09-26 16:43:22 +00:00
delete_records_via_leader.pl Bug 22155: Adapt uses of biblio_metadata.marcflavour to schema 2019-01-30 11:35:34 +00:00
edi_cron.pl
fines.pl Bug 21753: Remove all reference of chargename from scripts 2019-01-04 03:13:49 +00:00
gather_print_notices.pl
import_webservice_batch.pl
j2a.pl
longoverdue.pl Bug 22049: Make MarkIssueReturned rely on returndate only 2019-01-25 20:46:47 +00:00
membership_expiry.pl
merge_authorities.pl
notice_unprocessed_suggestions.pl
overdue_notices.pl
printoverdues.sh
process_message_queue.pl Bug 21322: process_message_queue.pl --type should take an argument 2018-10-03 17:34:43 +00:00
purge_suggestions.pl Bug 16280: purge_suggestions.pl: Cron job log should tell number of days used 2018-11-05 14:41:05 +00:00
reconcile_balances.pl Bug 21915: Add a cli script to reconcile balances 2019-01-04 03:13:41 +00:00
remove_temporary_edifiles.pl
runreport.pl Bug 22323: cronjob runreport.pl CSV add encoding 2019-02-19 13:52:14 +00:00
serialsUpdate.pl Bug 17047: subscriptions management with Mana-KB 2019-01-23 14:39:26 +00:00
share_usage_with_koha_community.pl
sitemap.pl
staticfines.pl Bug 21753: Remove all reference of chargename from scripts 2019-01-04 03:13:49 +00:00
stockrotation.pl Bug 21620: Prevent stockrotation cronjob failures 2018-11-02 10:33:00 +00:00
update_totalissues.pl