https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34583
Bug ID: 34583 Summary: Overdue notice - wrong coding in outlook in czech e-mail in “print” mode Change sponsored?: --- Product: Koha Version: 21.11 Hardware: Macintosh OS: Linux Status: NEW Severity: normal Priority: P5 - low Component: Notices Assignee: koha-bugs@lists.koha-community.org Reporter: svob...@rbit.cz QA Contact: testo...@bugs.koha-community.org CC: blac...@gmail.com Overview: Koha overdue notice “print” email in Outlook is incorrectly encoded in czech language. Tested in KohaTestingDocker - https://gitlab.com/koha-community/koha-testing-docker Steps to reproduce: Overdue notice, set print in UI, https://snipboard.io/FLkIxf.jpg. Message body: <table style="padding:0; margin: 0; border-collapse: collapse; font-family: 'Trebuchet MS', Helvetica, sans-serif; width: 100%; "><tr><td style="vertical-align: top; padding: 0"> </td><td style="width: 75mm; vertical-align: top;"><table style="margin-top: 2.5cm; font-size: 11pt;"><tr><td><<borrowers.cardnumber>></td></tr><tr><td><<borrowers.firstname>> <<borrowers.surname>></td></tr><tr><td><<borrowers.address>> <<borrowers.streetnumber>></td></tr><tr><td><<borrowers.city>></td></tr><tr><td><<borrowers.zipcode>></td></tr></table></td></tr><tr><td colspan="2" style="padding: 0;"><table style="width: 100%; margin: 3cm 0 0 0;"><tr><td style="width: 5mm; height: 5mm; border-bottom: 1px dotted #000;"> </td><td style="height: 1mm;"></td><td style="width: 5mm; height: 1mm; border-bottom: 1px dotted #000;"> </td></tr></table></td></tr><tr><td colspan="2"><table><tr><td style="padding: 0.5cm 0.3cm">V Chrudimi dne <<today>></td></tr><tr><td style="padding: 0 0.3cm">Upozorňujeme Vás, že byla již o 30 dnů překročena doba, na kterou jsme Vám půjčili dokumenty (celkem<<count>>). Žádáme Vás o brzké vrácení těchto výpůjček:</td></tr><tr><td style="padding: 0.5cm 0.3cm;"><table><tr><th>Od</th><th>Do</th><th>Název</th><th>Autor</th><th>Částka</th></tr><item><tr><td><<issues.issuedate>></td><td><strong><<issues.date_due>></strong></td><td><<biblio.title>></td><td><<biblio.author>></td><td><<items.fine>> Kč</td></tr></item></table></td></tr><tr><td style="padding: 0 0.3cm">Zpozdné je účtováno dle ceníku knihovny.</td></tr><tr><td style="padding: 0 0.3cm">Dokumenty můžete vrátit na jakémkoli oddělení knihovny a pobočce v jejich provozní době.</td></tr><tr><td style="padding: 0 0.3cm">Nesplní-li čtenář svou povinnost vyrovnat závazky s knihovou, má knihovna právo postupovat podle příslušných ustanovení občanského zákoníku.</td></tr></table></td></tr></table> Set delay 1 day, https://snipboard.io/boAd3F.jpg. Checkout any book. Set in database issues->date_due = today() - 1 for checkouted book, https://snipboard.io/PrylGB.jpg. Run this scripts: koha-shell kohadev -c "/kohadevbox/koha/misc/cronjobs/overdue_notices.pl -v -t" You must have KOHA set up for sending e-mails (SMTP server). Replace x...@email.cz to your e-mail and run this script: koha-shell kohadev -c "/kohadevbox/koha/misc/cronjobs/gather_print_notices.pl /var/spool/koha/kohadev/ --email x...@email.cz" Actual results: czech e-mail wrong coding in outlook: https://snipboard.io/Ykiq8g.jpg. Expected result: czech e-mail ok coding in outlook: https://snipboard.io/fNdhov.jpg. Additional Information: Possible fix in code by adding this line, https://snipboard.io/fM54st.jpg. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes. _______________________________________________ Koha-bugs mailing list Koha-bugs@lists.koha-community.org https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/