[Koha-patches] [PATCH] [SIGNED-OFF] Bug 9208 : Fix encoding of overdue letters
Srdjan
srdjan at catalyst.net.nz
Fri Aug 15 04:05:34 CEST 2014
From: Sophie Meynieux <sophie.meynieux at biblibre.com>
When overdue letters templates contain symbol like euro,
the conversion between html to pdf results in wrong encoding
of special characters.
Adding explicit utf8 encoding at the beginning of html file
resolves this problem. This is already done for hold notices.
Signed-off-by: Srdjan <srdjan at catalyst.net.nz>
---
misc/cronjobs/overdue_notices.pl | 1 +
1 file changed, 1 insertion(+)
diff --git a/misc/cronjobs/overdue_notices.pl b/misc/cronjobs/overdue_notices.pl
index 943c486..7e897ec 100755
--- a/misc/cronjobs/overdue_notices.pl
+++ b/misc/cronjobs/overdue_notices.pl
@@ -397,6 +397,7 @@ if ( defined $htmlfilename ) {
print $fh "<html>\n";
print $fh "<head>\n";
+ print $fh "<meta charset=\"utf-8\" />\n";
print $fh "<style type='text/css'>\n";
print $fh "pre {page-break-after: always;}\n";
print $fh "pre {white-space: pre-wrap;}\n";
--
1.9.1
More information about the Koha-patches
mailing list