Bug 5347: Followup Adds columns claims_count and claimed_date in aqorders

FIX encoding problem

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Umlauts and diacritics now show up correctly in generated claims notices.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
This commit is contained in:
Jonathan Druart 2011-12-28 09:44:39 +01:00 committed by Paul Poulain
parent b8e9829be5
commit ec5d679468

View file

@ -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;