Hi,

I have a severe Problem with text/html mails sent to a RT queue via the 
Maligate, both on Web and on E-Mail Replies, the UTF-8 entities get 
double-encoded.

Here is what I sent to RT (copy/pasted from Outlook):

---snip---
öäü
ßßß
---snap---

The Ticket in the web shows this as 

---snip---
öäü
ßßß
---snap---
 
(Page is reported as UTF-8 by Opera)


If I download the entire Attachment, I get:

---snip---
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">


<META content="MSHTML 6.00.5700.6" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=820305214-16112006><FONT face=Arial 
size=2>öäü</FONT></SPAN></DIV>
<DIV><SPAN class=820305214-16112006><FONT face=Arial 
size=2>ßßß</FONT></SPAN></DIV><!-- Converted from text/plain format -->
[...]
---snap---

(Page is reported as UTF-8 by Opera)


The automatically generated reply from RT quotes it like this:

---snip---
öäüßßß
---snap---


The funny things about all this:

a) If I send the very same mail as plain/text instead of plain/html, everything 
works fine.

b) If I manually change the encoding line in the Database (update attachments 
set contenttype='text/plain' where id=1;) display is fine as well.

I am using RT 3.6.1-2 installed from Debian Packages out of Testing, the full 
System Configuration dump can be found in the attached text file.


I would appreciate any hints where to go from here, because I have been trying 
for hours now to locate this problem. I even tried switching from MySQL to 
PgSQL, with no effect.




Yours sincerely,
Torben Nehmer

-------
Torben Nehmer
Diplom Informatiker (FH)
Business System Developer

CANCOM Deutschland GmbH
Messerschmittstr. 20
89343 Scheppach
Germany

Phone: +49 (0)8225 - 996-1118
Fax: +49 (0)8225 - 996-41118
[EMAIL PROTECTED]


Perl v5.8.8 under linux 
  Apache2::Access v2.000002;
  Apache2::Connection v2.000002;
  Apache2::Const v2.000002;
  Apache2::Filter v2.000002;
  Apache2::Log v2.000002;
  Apache2::Module v2.000002;
  Apache2::RequestIO v2.000002;
  Apache2::RequestRec v2.000002;
  Apache2::RequestUtil v2.000002;
  Apache2::Response v2.000002;
  Apache2::ServerRec v2.000002;
  Apache2::ServerUtil v2.000002;
  Apache2::Status v4.00;
  Apache2::SubRequest v2.000002;
  Apache2::URI v2.000002;
  Apache2::Util v2.000002;
  Apache::DBI v1.04;
  Apache::Session v1.81;
  Apache::Session::Generate::MD5 v2.1;
  Apache::Session::Lock::Null v1.01;
  Apache::Session::Postgres v1.01;
  Apache::Session::Serialize::Base64 v1.00;
  Apache::Session::Store::DBI v1.02;
  Apache::Session::Store::Postgres v1.03;
  APR v0.009000;
  APR::Brigade v0.009000;
  APR::Bucket v0.009000;
  APR::Const v0.009000;
  APR::Date v0.009000;
  APR::Pool v0.009000;
  APR::Table v0.009000;
  APR::URI v0.009000;
  APR::Util v0.009000;
  AutoLoader v5.60;
  base v2.07;
  Benchmark v1.07;
  bytes v1.02;
  Cache::Simple::TimedExpiry v0.26;
  Carp v1.04;
  CGI v3.15;
  CGI::Cookie v1.26;
  CGI::Util v1.5;
  Class::Container v0.12;
  Class::Data::Inheritable v0.04;
  Class::ReturnValue v0.53;
  Clone v0.18;
  constant v1.05;
  Cwd v3.12;
  Data::Dumper v2.121_08;
  Date::Format v2.22;
  Date::Parse v2.27;
  DBD::Pg v1.49;
  DBI v1.52;
  DBIx::SearchBuilder v1.45;
  DBIx::SearchBuilder::Union v0;
  DBIx::SearchBuilder::Unique v0.01;
  Devel::StackTrace v1.11;
  Devel::StackTraceFrame v0.6;
  Digest::base v1.00;
  Digest::MD5 v2.36;
  DynaLoader v1.04;
  Encode v2.12;
  Encode::Alias v2.04;
  Encode::Config v2.01;
  Encode::Encoding v2.02;
  Errno v1.0901;
  Exception::Class v1.21;
  Exception::Class::Base v1.2;
  Exporter v5.58;
  Exporter::Heavy v5.58;
  Fcntl v1.05;
  fields v2.03;
  File::Basename v2.74;
  File::Glob v1.05;
  File::Path v1.08;
  File::Spec v3.12;
  File::Spec::Functions v1.3;
  File::Spec::Unix v1.5;
  File::Temp v0.16;
  FileHandle v2.01;
  HTML::Element v3.16;
  HTML::Entities v1.35;
  HTML::Formatter v2.04;
  HTML::FormatText v2.04;
  HTML::Mason v1.33;
  HTML::Mason::ApacheHandler v1.69;
  HTML::Mason::Exception v1.1;
  HTML::Mason::Exception::Abort v1.1;
  HTML::Mason::Exception::Compilation v1.1;
  HTML::Mason::Exception::Compilation::IncompatibleCompiler v1.1;
  HTML::Mason::Exception::Compiler v1.1;
  HTML::Mason::Exception::Decline v1.1;
  HTML::Mason::Exception::Params v1.1;
  HTML::Mason::Exception::Syntax v1.1;
  HTML::Mason::Exception::System v1.1;
  HTML::Mason::Exception::TopLevelNotFound v1.1;
  HTML::Mason::Exception::VirtualMethod v1.1;
  HTML::Mason::Exceptions v1.43;
  HTML::Parser v3.55;
  HTML::Scrubber v0.08;
  HTML::Tagset v3.10;
  HTML::TreeBuilder v3.13;
  HTTP::Date v1.47;
  I18N::LangTags v0.35;
  integer v1.00;
  IO v1.22;
  IO::File v1.13;
  IO::Handle v1.25;
  IO::InnerFile v2.110;
  IO::Lines v2.110;
  IO::Scalar v2.110;
  IO::ScalarArray v2.110;
  IO::Seekable v1.1;
  IO::Wrap v2.110;
  IO::WrapTie v2.110;
  IPC::Open2 v1.02;
  IPC::Open3 v1.02;
  lib v0.5565;
  List::Util v1.18;
  Locale::Maketext v1.09;
  Locale::Maketext::Fuzzy v0.02;
  Locale::Maketext::Lexicon v0.62;
  Locale::Maketext::Lexicon::Gettext v0.15;
  Log::Dispatch v2.11;
  Log::Dispatch::Base v1.09;
  Log::Dispatch::Output v1.26;
  Log::Dispatch::Screen v1.17;
  Log::Dispatch::Syslog v1.18;
  Mail::Address v1.74;
  Mail::Field v1.74;
  Mail::Field::AddrList v1.74;
  Mail::Field::Date v1.74;
  Mail::Header v1.74;
  Mail::Internet v1.74;
  MIME::Base64 v3.07;
  MIME::Body v5.420;
  MIME::Decoder v5.420;
  MIME::Entity v5.420;
  MIME::Field::ContDisp v5.420;
  MIME::Field::ConTraEnc v5.420;
  MIME::Field::ContType v5.420;
  MIME::Field::ParamVal v5.420;
  MIME::Head v5.420;
  MIME::Parser v5.420;
  MIME::QuotedPrint v3.07;
  MIME::Tools v5.420;
  MIME::Words v5.420;
  mod_perl v2.000002;
  mod_perl2 v2.000002;
  ModPerl::Const v2.000002;
  Module::Versions::Report v1.02;
  overload v1.04;
  Params::Validate v0.77;
  POSIX v1.09;
  re v0.05;
  Regexp::Common v2.120;
  Regexp::Common::delimited v2.104;
  RT v3.6.1;
  RT::Interface::Email v2;
  Scalar::Util v1.18;
  SelectSaver v1.01;
  Socket v1.78;
  Storable v2.15;
  strict v1.03;
  Symbol v1.06;
  Sys::Syslog v0.13;
  Text::Autoformat v1.13;
  Text::Quoted v1.8;
  Text::Reform v1.11;
  Text::Tabs v2005.0824;
  Text::Template v1.44;
  Text::Wrapper v1.000;
  Time::HiRes v1.86;
  Time::JulianDay v2003.1125;
  Time::Local v1.11;
  Time::ParseDate v2003.1126;
  Time::Timezone v2003.0211;
  Time::Zone v2.22;
  UNIVERSAL v1.01;
  UNIVERSAL::require v0.10;
  URI v1.35;
  URI::Escape v3.28;
  utf8 v1.06;
  vars v1.01;
  Want v0.09;
  warnings v1.05;
  warnings::register v1.01;
  XSLoader v0.06;


RT VariablesRT::AmbiguousDayInPast      1 
RT::BasePath    /usr/share/request-tracker3.6 
RT::BinPath     /usr/bin 
RT::CORE_CONFIG_FILE    /etc/request-tracker3.6/RT_Config.pm 
RT::CommentAddress      [EMAIL PROTECTED] 
RT::CorrespondAddress   [EMAIL PROTECTED] 
RT::DatabaseHost        localhost 
RT::DatabaseName        rtdb 
RT::DatabasePassword    Password not printed 
RT::DatabaseRTHost      localhost 
RT::DatabaseType        Pg 
RT::DatabaseUser        rtuser 
RT::DateDayBeforeMonth  1 
RT::DefaultSearchResultFormat   '<B><A 
HREF="/rt/Ticket/Display.html?id=__id__">__id__</a></B>/TITLE:#', '<B><A 
HREF="/rt/Ticket/Display.html?id=__id__">__Subject__</a></B>/TITLE:Subject', 
Status, QueueName, OwnerName, Priority, '__NEWLINE__', '', 
'<small>__Requestors__</small>', '<small>__CreatedRelative__</small>', 
'<small>__ToldRelative__</small>', '<small>__LastUpdatedRelative__</small>', 
'<small>__TimeLeft__</small>' 
RT::DefaultSummaryRows  10 
RT::EmailOutputEncoding utf-8 
RT::EtcPath     /etc/request-tracker3.6 
RT::FriendlyFromLineFormat      "%s via RT" <%s> 
RT::FriendlyToLineFormat        "%s of dev.cancom.de Ticket #%s":; 
RT::LocalEtcPath        /usr/local/share/request-tracker3.6/etc 
RT::LocalLexiconPath    /usr/local/share/request-tracker3.6/po 
RT::LocalPath   /usr/local/share/request-tracker3.6 
RT::LogDir      /var/log/request-tracker3.6 
RT::LogToFileNamed      rt.log 
RT::LogToScreen error 
RT::LogToSyslog debug 
RT::LogoURL     /rt/NoAuth/images/bplogo.gif 
RT::LoopsToRTOwner      1 
RT::MailCommand sendmailpipe 
RT::MasonComponentRoot  /usr/share/request-tracker3.6/html 
RT::MasonDataDir        /var/cache/request-tracker3.6/mason_data 
RT::MasonLocalComponentRoot     /usr/local/share/request-tracker3.6/html 
RT::MasonSessionDir     /var/cache/request-tracker3.6/session_data 
RT::MaxAttachmentSize   10000000 
RT::MaxInlineBody       32768 
RT::MessageBoxWidth     72 
RT::MessageBoxWrap      HARD 
RT::MinimumPasswordLength       5 
RT::NotifyActor 1 
RT::OldestTransactionsFirst     1 
RT::Organization        cancom.de 
RT::OwnerEmail  [EMAIL PROTECTED] 
RT::PreferRichtText     1 
RT::RTAddressRegexp     [EMAIL PROTECTED] 
RT::RecordOutgoingEmail 1 
RT::RedistributeAutoGeneratedMessages   privileged 
RT::SITE_CONFIG_FILE    /etc/request-tracker3.6/RT_SiteConfig.pm 
RT::SendmailArguments   -oi -t 
RT::SendmailBounceArguments     -f "<>" 
RT::SendmailPath        /usr/sbin/sendmail 
RT::ShowTransactionImages       1 
RT::StrictLinkACL       1 
RT::Timezone    Europe/Berlin 
RT::UseFriendlyFromLine 1 
RT::UseFriendlyToLine   1 
RT::VERSION     3.6.1 
RT::VarPath     /var/cache/request-tracker3.6 
RT::WebBaseURL  http://my.domain.com 
RT::WebDefaultStylesheet        3.5-default 
RT::WebFlushDbCacheEveryRequest 1 
RT::WebImagesURL        /rt/NoAuth/images/ 
RT::WebPath     /rt 
RT::WebPort     80 
RT::WebURL      http://my.domain.com/rt/ 
RT::rtname      dev.cancom.de 

Perl configuration
Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
  Platform:
    osname=linux, osvers=2.6.15-1-686, archname=i486-linux-gnu-thread-multi
    uname='linux ulises 2.6.15-1-686 #2 mon mar 6 15:27:08 utc 2006 i686 
gnulinux '
    config_args='-Dusethreads -Duselargefiles -Dccflags=-DDEBIAN 
-Dcccdlflags=-fPIC -Darchname=i486-linux-gnu -Dprefix=/usr 
-Dprivlib=/usr/share/perl/5.8 -Darchlib=/usr/lib/perl/5.8 -Dvendorprefix=/usr 
-Dvendorlib=/usr/share/perl5 -Dvendorarch=/usr/lib/perl5 
-Dsiteprefix=/usr/local -Dsitelib=/usr/local/share/perl/5.8.8 
-Dsitearch=/usr/local/lib/perl/5.8.8 -Dman1dir=/usr/share/man/man1 
-Dman3dir=/usr/share/man/man3 -Dsiteman1dir=/usr/local/man/man1 
-Dsiteman3dir=/usr/local/man/man3 -Dman1ext=1 -Dman3ext=3perl 
-Dpager=/usr/bin/sensible-pager -Uafs -Ud_csh -Uusesfio -Uusenm -Duseshrplib 
-Dlibperl=libperl.so.5.8.8 -Dd_dosuid -des'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define use5005threads=undef useithreads=define 
usemultiplicity=define
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN 
-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64',
    optimize='-O2',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN 
-fno-strict-aliasing -pipe -I/usr/local/include'
    ccversion='', gccversion='4.1.2 20060729 (prerelease) (Debian 4.1.1-10)', 
gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', 
lseeksize=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='cc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lgdbm -lgdbm_compat -ldb -ldl -lm -lpthread -lc -lcrypt
    perllibs=-ldl -lm -lpthread -lc -lcrypt
    libc=/lib/libc-2.3.6.so, so=so, useshrplib=true, libperl=libperl.so.5.8.8
    gnulibc_version='2.3.6'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
    cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib
_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
Buy a copy at http://rtbook.bestpractical.com

Reply via email to