From 793bd3feca24220b6ff427c034071358ae3522a1 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 8 Nov 2012 10:39:32 -0500 Subject: [PATCH] Bug 9033 - Wide character error in runreport.pl Signed-off-by: Julian Maurice Signed-off-by: Jared Camins-Esakov Signed-off-by: Chris Cormack --- misc/cronjobs/runreport.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/misc/cronjobs/runreport.pl b/misc/cronjobs/runreport.pl index 690f216e90..8bb4266628 100755 --- a/misc/cronjobs/runreport.pl +++ b/misc/cronjobs/runreport.pl @@ -29,6 +29,7 @@ use Mail::Sendmail; use Text::CSV_XS; use CGI; use Carp; +use Encode; use vars qw($VERSION); @@ -245,8 +246,8 @@ foreach my $report_id (@ARGV) { my %mail = ( To => $to, From => $from, - Subject => $subject, - Message => $message + Subject => encode('utf8', $subject ), + Message => encode('utf8', $message ) ); sendmail(%mail) or carp 'mail not sent:' . $Mail::Sendmail::error; } else { -- 2.39.5