[Koha-patches] [PATCH] Bug 5303 Overdue notices subject is improperly encoded

Frédéric Demians f.demians at tamil.fr
Wed Oct 13 21:43:55 CEST 2010


---
 C4/Letters.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/C4/Letters.pm b/C4/Letters.pm
index 62b339a..5414adb 100644
--- a/C4/Letters.pm
+++ b/C4/Letters.pm
@@ -818,7 +818,7 @@ sub _send_message_by_email ($;$$$) {
     my %sendmail_params = (
         To   => $to_address,
         From => $message->{'from_address'} || C4::Context->preference('KohaAdminEmailAddress'),
-        Subject => $message->{'subject'},
+        Subject => encode('utf8', $message->{'subject'}),
         charset => 'utf8',
         Message => $content,
         'content-type' => $message->{'content_type'} || 'text/plain; charset="UTF-8"',
-- 
1.7.1



More information about the Koha-patches mailing list