From kde-commits Mon Jun 28 14:57:58 2004 From: =?utf-8?q?Luk=C3=A1=C5=A1=20Tinkl?= Date: Mon, 28 Jun 2004 14:57:58 +0000 To: kde-commits Subject: KDE_3_2_BRANCH: kdepim/kmail Message-Id: <20040628145758.B652A9144 () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=108843468820545 CVS commit by lukas: backport CVS commit by tilladam: Use the right codec instead of latin1 when showing the source of mails. (fixes #70343 and a couple of dupes) M +3 -1 kmcommands.cpp 1.99.2.6 --- kdepim/kmail/kmcommands.cpp #1.99.2.5:1.99.2.6 @@ -553,5 +553,7 @@ void KMShowMsgSrcCommand::execute() { KMMessage *msg = retrievedMessage(); - QString str = QString::fromLatin1( msg->asString() ); + QString str = QTextCodec::codecForName( msg->charset().isEmpty() ? + QCString( kmkernel->networkCodec()->mimeName() ) : + msg->charset() )->toUnicode( msg->asString() ); MailSourceViewer *viewer = new MailSourceViewer(); // deletes itself upon close