Bug 165190 - Japanese text in plain text body part of HTML message gets corrupted
Summary: Japanese text in plain text body part of HTML message gets corrupted
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Applications
Component: composer (show other bugs)
Version: 1.9.52
Platform: Compiled Sources Linux
: HI normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-28 14:46 UTC by Jaakko K.
Modified: 2008-07-07 08:45 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
a message with gibberish (1.50 KB, text/plain)
2008-06-29 16:04 UTC, Jaakko K.
Details
a mail with gibberish (2.78 KB, text/plain)
2008-06-29 16:04 UTC, Jaakko K.
Details
the message with html formatting (4.20 KB, application/octet-stream)
2008-07-04 09:07 UTC, Jaakko K.
Details
Same message without html formatting. (2.88 KB, application/octet-stream)
2008-07-04 09:08 UTC, Jaakko K.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaakko K. 2008-06-28 14:47:42 UTC
Version:            (using Devel)
Installed from:    Compiled sources
Compiler:          gcc version 4.3.1 (Gentoo 4.3.1 p1.0) 
OS:                Linux

Hi,

Sometimes when I send Japanese e-mail, random parts of the mail goes ? marks and the end gets cut off, or � marks. I'm not sure how to reproduce this, but the "HTML document" of the message seems to be fine, only the "plain text document" goes gibberish.

Some screenshots of the problem.

With those � marks: [url]http://img90.imageshack.us/my.php?image=bug1dm2.png[/url]
and it should look like this (HTML document): [url]http://img410.imageshack.us/my.php?image=bug2xu1.png[/url]

With cut off part: [url]http://img410.imageshack.us/my.php?image=bug3ex4.png[/url]
and it should look like this (HTML document): [url]http://img168.imageshack.us/my.php?image=bug4aw5.png[/url]

I'm using kmail 1.9.52 built from Gentoo svn overlay.
Comment 2 Thomas McGuire 2008-06-29 15:52:14 UTC
Could you please attach such a mail to this bugreport?
Comment 3 Jaakko K. 2008-06-29 16:04:00 UTC
Created attachment 25706 [details]
a message with gibberish
Comment 4 Jaakko K. 2008-06-29 16:04:20 UTC
Created attachment 25707 [details]
a mail with gibberish
Comment 5 Jaakko K. 2008-06-29 16:07:34 UTC
and also, person who receives the mail, sees it wrong too.
Comment 6 Jaakko K. 2008-07-04 09:00:17 UTC
I did some testing (with a message which goes bad). Disabling Formatting (HTML) from the new mesaage window while sending seems to fix it (atleast with this mail).
Comment 7 Jaakko K. 2008-07-04 09:07:06 UTC
Created attachment 25824 [details]
the message with html formatting
Comment 8 Jaakko K. 2008-07-04 09:08:14 UTC
Created attachment 25825 [details]
Same message without html formatting.
Comment 9 Thomas McGuire 2008-07-05 19:45:02 UTC
OK, thanks to your attached mail, I am able to reprodcue this.
I'll try to do something about it before the 4.1 release.
Comment 10 Thomas McGuire 2008-07-07 00:12:39 UTC
SVN commit 828900 by tmcguire:

Don't use a hidden edit widget to remove the formatting from a HTML message (in order
to get a plain text version for the text body part), this corrupts text written in
Japanese.

Instead, read the plain text version directly from the composer, which seems to
work fine.

BUG: 165190


 M  +55 -69    messagecomposer.cpp  
 M  +14 -13    messagecomposer.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=828900
Comment 11 Thomas McGuire 2008-07-07 00:14:56 UTC
Please test the new version and report back if the problem is indeed solved now.
Comment 12 Jaakko K. 2008-07-07 08:45:46 UTC
I tried with the attached mail, and it works fine now (with html formatting), so it seems to be solved. Thank you.