From b681da9de6676e157223ced996ebfd1feb9c3cb1 Mon Sep 17 00:00:00 2001 From: Alex Arnaud Date: Fri, 8 Apr 2011 09:25:40 +0200 Subject: [PATCH] Bug #6130 - Letters: Fixing Subject encoding --- C4/Letters.pm | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/C4/Letters.pm b/C4/Letters.pm index 269ec78..c894a57 100644 --- a/C4/Letters.pm +++ b/C4/Letters.pm @@ -816,7 +816,9 @@ sub _send_message_by_email ($;$$$) { } } - my $content = encode('utf8', $message->{'content'}); + my $utf8 = decode('MIME-Header', $message->{'subject'} ); + $message->{subject}= encode('MIME-Header', $utf8); + my $content = encode('utf8', $message->{'content'}); my %sendmail_params = ( To => $to_address, From => $message->{'from_address'} || C4::Context->preference('KohaAdminEmailAddress'), -- 1.6.3.3