[Patches] [PATCH] [SIGNED-OFF] Bug 5347: Followup Adds columns claims_count
koha-patchbot at kohaaloha.com
koha-patchbot at kohaaloha.com
Fri Dec 30 14:10:04 NZDT 2011
From: Jonathan Druart <jonathan.druart at biblibre.com>
Date: Wed, 28 Dec 2011 09:44:39 +0100
Subject: [PATCH] [SIGNED-OFF] Bug 5347: Followup Adds columns claims_count
and claimed_date in aqorders
FIX encoding problem
Signed-off-by: Katrin Fischer <Katrin.Fischer.83 at web.de>
Umlauts and diacritics now show up correctly in generated claims notices.
---
C4/Letters.pm | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/C4/Letters.pm b/C4/Letters.pm
index 2050642..5cde41d 100644
--- a/C4/Letters.pm
+++ b/C4/Letters.pm
@@ -22,8 +22,6 @@ use warnings;
use MIME::Lite;
use Mail::Sendmail;
-use Encode;
-use Carp;
use C4::Members;
use C4::Branch;
@@ -390,8 +388,8 @@ sub SendAlerts {
my %mail = (
To => $to,
From => $userenv->{emailaddress},
- Subject => "" . $innerletter->{title},
- Message => "" . $innerletter->{content},
+ Subject => Encode::encode( "utf8", "" . $innerletter->{title} ),
+ Message => Encode::encode( "utf8", "" . $innerletter->{content} ),
'Content-Type' => 'text/plain; charset="utf8"',
);
sendmail(%mail) or carp $Mail::Sendmail::error;
--
1.7.5.4
More information about the Patches
mailing list