Summary: | Add charset selection box to Attach File dialog | ||
---|---|---|---|
Product: | [Unmaintained] kmail | Reporter: | Christian Wolfgang Hujer <Christian.Hujer> |
Component: | mime | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | CC: | avbidder+kde, thomas.moschny, tuju |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Christian Wolfgang Hujer
2003-04-10 18:28:25 UTC
KMail uses the encoding that is selected for the message. So the workaround is to select utf-8 encoding before attaching the vCard. After attaching the vCard you can switch back to automatic encoding. The problem is that vCards don't have a charset entry. Instead the charset has to be provided in the attachment headers according to the RFC. But this makes it pretty much impossible to attach vCards which are stored in a file with the correct encoding because the vCard doesn't contain any information about the encoding. So it's impossible for KMail to know the charset which has been used to encode the vCard. AFAIK kaddressbook always uses utf-8 (which makes sense because then the difficult guessing of a suitable charset is unnecessary). But this means that using the default encoding of the OS won't work. AFAICS the only solution will be to add the charset selection box to the Attach File dialog. Then the user will have to select the correct charset manually. As you can see it's not really a bug in KMail. It's simply the result of the lack of a charset entry in the vCard. Therefore I changed subject and severity of this bug report. *** Bug 71031 has been marked as a duplicate of this bug. *** Verified as requested. It's still not done with 3.2.2. (Yes, I reported a duplicate of this. But why do I have to verify it if I'm not the reporter of this bug?) Hi ! I have a similar problem receiving VCard written with another charset : the characters do not display correctly, it is simply unreadable. Here is an "example.mail" mail which contains such a VCard. Michel Nolard The problem is not only with vcards, but with all text/... attachments. Re #1: If the mime spec (sensibly) requires adding a charset property to an attachment, and there is no reliable way to get the correct value for that property, it *is* a bug of kmail not to ask the user for it. Imho there are three possible solutions: (1) While adding an attachment, if kmail detects the mime-type to be something like text/..., pop up a dialog box, asking the user for the right charset. (2) Add a charset selector to the "open file" dialog (like kate does, for example). (3) Add a charset selector to the attachment property dialog. From (1) and (2), (1) does make more sense (but might be more difficult to implement), because there's no point in selecting a charset for binary attachments. Option (3) can (and probably should) be added independently of (1) or (2). IMHO this rather should be a bug than a wish. When I add some text file all my umlauts are silently wrong encoded, so the recipient can hardly read the text. Is there a possibility to autodetect encoding of the textfile (among the values of options->composer->charsets) and set this header line correctly? This problem will slowly vanish if everyone uses utf-8 only ... ;) Closing, the charset is now auto-detected when a file of mimetpye text/* is attached. |