[Koha-patches] [PATCH] Bug #6130 - Letters: Fixing Subject encoding
Alex Arnaud
alex.arnaud at biblibre.com
Fri Apr 8 09:29:03 CEST 2011
---
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
More information about the Koha-patches
mailing list