[Koha-patches] [PATCH 1/1] Bug 5347: Followup Adds columns claims_count and claimed_date in aqorders

Jonathan Druart jonathan.druart at biblibre.com
Wed Dec 28 09:46:29 CET 2011


FIX encoding problem
---
 C4/Letters.pm |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/C4/Letters.pm b/C4/Letters.pm
index 883f706..b4ba478 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;
-- 
1.7.7.3



More information about the Koha-patches mailing list