Bug 281832 - kmail does not handle charsets for mail body when replying to a decrypted mail properly
Summary: kmail does not handle charsets for mail body when replying to a decrypted mai...
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 4.7
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-11 22:19 UTC by Marc Schiffbauer
Modified: 2017-01-07 21:34 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Schiffbauer 2011-09-11 22:19:50 UTC
Version:           4.7 (using KDE 4.7.1) 
OS:                Linux

When kmail decrypts a mail the display of the mail body is shown correctly.

But when hit the reply button, the quoted mail body text has garbage characters for non-ascii characters (german umlauts for example). Looks like utf8 text is shown with charset set to latin1 or something like that.

This lookes exactly like a bug that has been in kmail2 for regular unencrypted mail as well some time ago.





Reproducible: Always

Steps to Reproduce:
- Have a encrypted mail in your mailbox
- Have some non english text in that mail (german with umlauts in my case)
- Let kmail decrypt and display that message
- Hit reply button to open mail editor with quoted mail text

Actual Results:  
Das Ganze sollten wir mit logischen Kriterien vollständig testen.

Expected Results:  
Das Ganze sollten wir mit logischen Kriterien vollständig testen.

What might help to debug this:

If I select some text in the mail body before replying only that text will be quoted and that text will have everythign allright then.

So, just reply with no text selected: Whole text is quoted with wrong encoding
And selecting whole text, then reply: Whole text is quoted and looks fine
Comment 1 Martin Bednar 2011-11-03 20:59:16 UTC
I'm seeing this issue with no encryption what so ever. For instance, in french, all the é, è à ç are displayed as �, including those of the "you wrote on..." line inserted by the reply template.  KMail 2 as in KDE SC 4.7.2.
Email is in UTF-8 : Content-Type: text/plain; charset=utf-8
First locale set in editor : UTF-8

I can work around this issue by checking the "Use original message encoding" option.
I'm willing to look into it, but I'm very short on time at the moment, so don't expect results too soon :(
Comment 2 Martin Koller 2013-02-10 12:15:46 UTC
Testing with 4.10.0 I can not reproduce this.
Is this still valid for you with this current version ?
Comment 3 Stanislav Sidorenko 2013-04-12 17:29:17 UTC
KDE 4.10.2 Ubuntu 12.10 (installed from PPA)

I can reproduce the issue if "Use original message encoding" option is set. It works fine if this option is disabled.
Comment 4 Denis Kurz 2016-09-24 18:08:32 UTC
This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present?

If noone confirms this bug for a Framework-based version of kmail2 (version 5.0 or later, as part of KDE Applications 15.12 or later), it gets closed in about three months.
Comment 5 Denis Kurz 2017-01-07 21:34:15 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.