[open-ils-commits] r11012 - trunk/Open-ILS/src/support-scripts
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Oct 31 10:27:07 EDT 2008
Author: erickson
Date: 2008-10-31 10:27:03 -0400 (Fri, 31 Oct 2008)
New Revision: 11012
Modified:
trunk/Open-ILS/src/support-scripts/generate_circ_notices.pl
Log:
more utf8-ification to prevent wide character problems (probably, some of this is redundant)
Modified: trunk/Open-ILS/src/support-scripts/generate_circ_notices.pl
===================================================================
--- trunk/Open-ILS/src/support-scripts/generate_circ_notices.pl 2008-10-31 14:26:43 UTC (rev 11011)
+++ trunk/Open-ILS/src/support-scripts/generate_circ_notices.pl 2008-10-31 14:27:03 UTC (rev 11012)
@@ -31,6 +31,7 @@
use OpenILS::Application::AppUtils;
use OpenILS::Const qw/:const/;
my $U = 'OpenILS::Application::AppUtils';
+use open ':utf8';
my $settings = undef;
my $e = OpenILS::Utils::CStoreEditor->new;
@@ -362,6 +363,8 @@
if($opt_send_email) {
+ use utf8;
+ utf8::encode($msg);
my $sender = Email::Send->new({mailer => 'SMTP'});
my $smtp_server = $settings->config_value(notifications => 'smtp_server');
$logger->debug("notice: smtp server is $smtp_server");
More information about the open-ils-commits
mailing list