Bug 97797 - text charset not properly taken in account when opening a message with kmail --view
Summary: text charset not properly taken in account when opening a message with kmail ...
Status: RESOLVED WORKSFORME
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: 1.7.1
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-24 16:14 UTC by Denis Prost
Modified: 2009-09-03 23:10 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
message with UTF-8 encoding not properly rendered with kmail --view (3.81 KB, message/rfc822)
2005-01-25 11:05 UTC, Denis Prost
Details
The problematic E-Mail message (1.12 KB, text/plain)
2005-04-26 22:17 UTC, Ricardo Garcia
Details
screenshot showing correct and incorrect display of message (296.02 KB, image/jpeg)
2005-08-10 20:49 UTC, Chris Kerr
Details
The e-mail shown in the screenshot (7.40 KB, application/x-mimearchive)
2005-08-10 20:50 UTC, Chris Kerr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Denis Prost 2005-01-24 16:14:48 UTC
Version:           1.7.1 (using KDE 3.3.1,  (3.1))
Compiler:          gcc version 3.3.5 (Debian 1:3.3.5-3)
OS:                Linux (i686) release 2.6.8.1

I use ISO-8859-15 encoding on my computer. When receiving an HTML message that is encoded in UTF-8, it is properly displayed. But When I save it to a file, and then open it later with "kmail --view", UTF-8 characters are displayed as if they where ISO-8859-15, making accented characters badly rendered.
Comment 1 Carsten Burghardt 2005-01-24 17:28:45 UTC
Do you use imap with enabled "Load Attachments on demand"? If yes - this
is fixed in kdepim 3.4. If not, we'll see ;-)

Comment 2 Denis Prost 2005-01-24 17:43:30 UTC
No, my mail accounts are all POP3 ones.
Comment 3 Carsten Burghardt 2005-01-24 21:31:30 UTC
Can you provide an example of the original and the saved mail?

Comment 4 Denis Prost 2005-01-25 11:05:07 UTC
Created attachment 9284 [details]
message with UTF-8 encoding not properly rendered with kmail --view

In fact, I don't even need to save the file since I use maildir and it's
already there in the "cur" directory. viewing it through kmail main window is
OK, but viewing it from konqueror by right clicking on it and choosing kmail
(starts kmail --view %u) gives a bad rendering of accented characters.
Comment 5 Ricardo Garcia 2005-04-26 22:17:23 UTC
Created attachment 10807 [details]
The problematic E-Mail message

I'm experiencing similar problems and I think it's the same bug. If it's not,
it looks very similar. The attached e-mail was written with KMail itself, using
"utf-8" encoding. When I preview this message in the preview window embedded
with KMail, it correctly displays the accented chars in both the headers and
the message body. The same happens when I open the message from disk using
Konqueror.

However, when I double-click on the message from KMail to open it in a separate
window, the chars at the end of the message body are displayed wrongly. It does
*not* happen with the characters in the e-mail header.
Comment 6 Chris Kerr 2005-08-10 20:38:45 UTC
I think I have the same / a similar problem on KDE 3.4.1
Messages in utf8 or iso-2022-jp display properly in the message preview pane, but when I open them in a separate window by double-clicking, the text in the window is garbage - basically just interpreting the message source as ascii. 
Comment 7 Chris Kerr 2005-08-10 20:49:00 UTC
Created attachment 12170 [details]
screenshot showing correct and incorrect display of message

This image shows a message with some utf8 encoded characters displayed
correctly in the preview pane and incorrectly in a message window
Comment 8 Chris Kerr 2005-08-10 20:50:44 UTC
Created attachment 12171 [details]
The e-mail shown in the screenshot
Comment 9 Cláudio F. Gil 2005-12-05 11:11:21 UTC
Same problem here: KDE 3.4.3, Kontact 1.1.2, KMail 1.8.3
Comment 10 Martin Koller 2009-09-03 23:10:07 UTC
Trying with KDE 4.3:
kmail --view file:///tmp/kmail-tests/1091826049.3969.KEGEo:2,S
Works and shows all characters correctly