Boris Bliznioukov
Sun, 04 Dec 2005 21:30:55 -0800
Here is the patch to fix it.
BTW can somebody commit it to the CVS.
diff -u -r otrss/Kernel/System/Email.pm otrs/Kernel/System/Email.pm
--- otrss/Kernel/System/Email.pm Wed Jan 19 22:06:25 2005
+++ otrs/Kernel/System/Email.pm Sat Aug 27 21:15:12 2005
@@ -224,7 +224,7 @@
# do some encode
foreach (qw(From To Cc Bcc Subject)) {
if ($Header{$_} && $Param{Charset}) {
- $Header{$_} = encode_mimewords($Header{$_}, Charset =>
$Param{Charset}) || '';
+ $Header{$_} = encode_mimewords(Encode::encode($Param
{Charset},$Header{$_}), Charset => $Param{Charset}) ||
'';
}
}
$Header{'X-Mailer'} = $Self->{ConfigObject}->Get('Product')."
Mail Service (".$Self->{ConfigObject}->Get('Version').")";
On 29 Nov 2005, at 07:35, Constantin V. Boulatnikoff wrote:
This is repost of message posted to otrs@otrs.org some days ago. hi ppl, I've benn setup OTRS 2.0.3 and configured using Russian language with utf-8 charset on FreeBSD 6.0-RELEASE box. Everything works fine except system-generated emails using Russian language. The body of message encoded in utf-8 and have apropriate headers: Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: base64 MIME-Version: 1.0so message body have been dispalyed correctly in all e-mail clients andwebmail frontents I've been tested. But message subject encoded in utf-8 and has no correct MIME enclosing like =?utf-8?[encoded subject text]==?= so email client uses it's default character set (usually koi8-r or windows-1251) to display subject line and subject line dispayed incorrectly.can I force OTRS to encode in MIME subject line in all generated messages?I'm using Sendmail method for sending emails and can't switch to SMTP method, because this causes "wide character..." error in Cmd.pm. My FreeBSD box uses SENDMAIL-8.13.4. bye ppl.. _______________________________________________OTRS mailing list: i18n Archiv: http://lists.otrs.org/cgi-bin/ listinfo/i18n
_______________________________________________OTRS mailing list: i18n Archiv: http://lists.otrs.org/cgi-bin/listinfo/i18n