RT 3.8.8: Problem with scandnavian characters in email subject

Hello,

We are using RT version 3.8.8, perl 5.8.8, and have the following problem:

When I send an email to RT with scandinavian characters (���) in the
subject, the characters are wrongly decoded in the subject of the
message sent out from RT. The scandinavian characters in the message
itself are OK.

When this message is replied to, the answer is recorded in RT but no
outgoing message is sent out. The following errors are recorded in the
log file:

Dec 22 11:40:27 bigarade RT: Scrip Prepare 5 died. - Cannot decode
string with wide characters at
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/Encode.pm line 173.
Stack:
[/usr/lib/perl5/5.8.8/i386-linux-thread-multi/Encode.pm:173]
[/usr/lib/perl5/5.8.8/i386-linux-thread-multi/Encode.pm:213]
[/opt/rt3/bin/…/lib/RT/Action/SendEmail.pm:961]
[/opt/rt3/bin/…/lib/RT/Action/SendEmail.pm:571]
[/opt/rt3/bin/…/lib/RT/Action/SendEmail.pm:167]
[/opt/rt3/bin/…/lib/RT/Action/Notify.pm:69]
[/opt/rt3/bin/…/lib/RT/ScripAction_Overlay.pm:230]
[/opt/rt3/bin/…/lib/RT/Scrip_Overlay.pm:448]
[/opt/rt3/bin/…/lib/RT/Scrips_Overlay.pm:240]
[/opt/rt3/bin/…/lib/RT/Transaction_Overlay.pm:169]
[/opt/rt3/bin/…/lib/RT/Record.pm:1457]
[/opt/rt3/bin/…/lib/RT/Ticket_Overlay.pm:2188]
[/opt/rt3/bin/…/lib/RT/Ticket_Overlay.pm:2100]
[/opt/rt3/bin/…/lib/RT/Interface/Email.pm:1500]
[/opt/rt3/share/html/REST/1.0/NoAuth/mail-gateway:61]
(/opt/rt3/bin/…/lib/RT/Scrip_Overlay.pm:451)

followed by similar messages for Scrip Prepare 7 and 6.

I suspect that it has something to do with Perl double-encoding
utf8-characters, but I have not found any solution. Any help would be
appreciated.

Best Regards,

M�rten Hedman
M�rten Hedman phone: +358-(0)2-333 8037
Systems Manager fax: +358-(0)2-333 8000
Turku Centre for Biotechnology Marten.Hedman@btk.fi
Turku, Finland http://www.btk.fi

Hello,

It would be really helpful to get email message as MIME text as it was
generated by your email client.On Wed, Dec 22, 2010 at 1:39 PM, Mårten Hedman marten.hedman@btk.fi wrote:

Hello,

We are using RT version 3.8.8, perl 5.8.8, and have the following problem:

When I send an email to RT with scandinavian characters (åäö) in the
subject, the characters are wrongly decoded in the subject of the message
sent out from RT. The scandinavian characters in the message itself are OK.

When this message is replied to, the answer is recorded in RT but no
outgoing message is sent out. The following errors are recorded in the log
file:

Dec 22 11:40:27 bigarade RT: Scrip Prepare 5 died. - Cannot decode
string with wide characters at
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/Encode.pm line 173.
Stack:
[/usr/lib/perl5/5.8.8/i386-linux-thread-multi/Encode.pm:173]
[/usr/lib/perl5/5.8.8/i386-linux-thread-multi/Encode.pm:213]
[/opt/rt3/bin/…/lib/RT/Action/SendEmail.pm:961]
[/opt/rt3/bin/…/lib/RT/Action/SendEmail.pm:571]
[/opt/rt3/bin/…/lib/RT/Action/SendEmail.pm:167]
[/opt/rt3/bin/…/lib/RT/Action/Notify.pm:69]
[/opt/rt3/bin/…/lib/RT/ScripAction_Overlay.pm:230]
[/opt/rt3/bin/…/lib/RT/Scrip_Overlay.pm:448]
[/opt/rt3/bin/…/lib/RT/Scrips_Overlay.pm:240]
[/opt/rt3/bin/…/lib/RT/Transaction_Overlay.pm:169]
[/opt/rt3/bin/…/lib/RT/Record.pm:1457]
[/opt/rt3/bin/…/lib/RT/Ticket_Overlay.pm:2188]
[/opt/rt3/bin/…/lib/RT/Ticket_Overlay.pm:2100]
[/opt/rt3/bin/…/lib/RT/Interface/Email.pm:1500]
[/opt/rt3/share/html/REST/1.0/NoAuth/mail-gateway:61]
(/opt/rt3/bin/…/lib/RT/Scrip_Overlay.pm:451)

followed by similar messages for Scrip Prepare 7 and 6.

I suspect that it has something to do with Perl double-encoding
utf8-characters, but I have not found any solution. Any help would be
appreciated.

Best Regards,

Mårten Hedman


Mårten Hedman phone: +358-(0)2-333 8037
Systems Manager fax: +358-(0)2-333 8000
Turku Centre for Biotechnology Marten.Hedman@btk.fi
Turku, Finland http://www.btk.fi

Best regards, Ruslan.

Hello,

Here’s the source of a test message. The subject is “this is a test” in
Finnish.

Regards,

Mårten Hedman

MIME-Version: 1.0
In-Reply-To: 4D11B4F9.7080106@btk.fi
X-Mailer: Perl5 Mail::Internet v2.04
References: RT-Ticket-433@btk.fi 4D11B4F9.7080106@btk.fi
Content-Type: text/plain; charset="utf-8"Reply-To: IT-Services@btk.fi
Message-ID: rt-3.8.8-30950-1293006345-123.433-4-0@btk.fi
X-RT-Original-Encoding: utf-8
RT-Originator: marten.hedman@btk.fi
Managed-BY: RT 3.8.8 (Request Tracker — Best Practical Solutions)
Subject: =?UTF-8?B?W2J0ay5maSAjNDMzXSBU77+9be+/vSBvbiB0ZXN0aQ==?=
Sender: Apache apache@bigarade.btk.fi
Date: Wed, 22 Dec 2010 10:25:45 +0200
RT-Ticket: btk.fi #433
Precedence: bulk
X-RT-Loop-Prevention: btk.fi
Content-Transfer-Encoding: 8bit
BCC:
From: “=?UTF-8?B?TcOlcnRlbiBIZWRtYW4=?= via RT” IT-Services@btk.fi

Wed Dec 22 10:25:45 2010: Request 433 was acted upon.
Transaction: Ticket created by marten.hedman@btk.fi
Queue: it-services
Subject: Tämä on testi
Owner: Nobody
Requestors: marten.hedman@btk.fi
Status: new
Ticket <URL: http://rt.btk.fi/Ticket/Display.html?id=433 >

In version 4.2.0 bug not resolved.

Non latin characters in the subject to crash “scrip prepare”.
Help me please. I can’t use RT without scrip :frowning:

View this message in context: http://requesttracker.8502.n7.nabble.com/RT-3-8-8-Problem-with-scandnavian-characters-in-email-subject-tp6982p55568.html