From ec5d6794681f78bb13788fd0efc8579f8c426fa8 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 28 Dec 2011 09:44:39 +0100 Subject: [PATCH] Bug 5347: Followup Adds columns claims_count and claimed_date in aqorders FIX encoding problem Signed-off-by: Katrin Fischer Umlauts and diacritics now show up correctly in generated claims notices. Signed-off-by: Paul Poulain --- C4/Letters.pm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/C4/Letters.pm b/C4/Letters.pm index 205064242d..5cde41d867 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; -- 2.39.5