[Rt-commit] rt branch, psgi, updated. rt-3.9.4-212-g4ce592b
? sunnavy
sunnavy at bestpractical.com
Wed Oct 20 03:42:25 EDT 2010
The branch, psgi has been updated
via 4ce592b551bd687d3429cb000d6eb4c069946934 (commit)
from 04f46ba3adf456830584a866ace5460af30080de (commit)
Summary of changes:
lib/RT/Action/CreateTickets.pm | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 4ce592b551bd687d3429cb000d6eb4c069946934
Author: sunnavy <sunnavy at bestpractical.com>
Date: Wed Oct 20 15:40:30 2010 +0800
warning fix: content could be utf8 decoded
diff --git a/lib/RT/Action/CreateTickets.pm b/lib/RT/Action/CreateTickets.pm
index 42f5995..86d9a7e 100755
--- a/lib/RT/Action/CreateTickets.pm
+++ b/lib/RT/Action/CreateTickets.pm
@@ -573,11 +573,15 @@ sub _ParseMultilineTemplate {
my %args = (@_);
my $template_id;
+ require Encode;
+ require utf8;
my ( $queue, $requestor );
$RT::Logger->debug("Line: ===");
foreach my $line ( split( /\n/, $args{'Content'} ) ) {
$line =~ s/\r$//;
- $RT::Logger->debug("Line: $line");
+ $RT::Logger->debug( "Line: " . utf8::is_utf8($line)
+ ? Encode::encode_utf8($line)
+ : $line );
if ( $line =~ /^===/ ) {
if ( $template_id && !$queue && $args{'Queue'} ) {
$self->{'templates'}->{$template_id}
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list