Summary | Drafts headers are being badly encoded when they contain accented chars |
Queue | IMP |
Queue Version | Git master |
Type | Bug |
State | Resolved |
Priority | 1. Low |
Owners | slusarz (at) horde (dot) org |
Requester | goncalo.queiros (at) portugalmail (dot) net |
Created | 11/30/2010 (5333 days ago) |
Due | |
Updated | 12/02/2010 (5331 days ago) |
Assigned | 12/01/2010 (5332 days ago) |
Resolved | 12/02/2010 (5331 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | Yes |
State ⇒ Resolved
Bug #9418: Header/Charset improvements/cleanups for IMP_Composehttp://git.horde.org/horde-git/-/commit/9172ca93856c6d0452f17641fb7c2ecd340c0257
Bug #9418: Honor chosen charset when saving draftshttp://git.horde.org/horde-git/-/commit/da85973be1f5475028e30a24c6a35ccf5df19a86
State ⇒ Feedback
Assigned to Michael Slusarz
Assigned to Jan Schneider
that incoming data from the browser is in UTF-8. So your draft
message will ALWAYS be saved with the headers UTF-8 MIME encoded. It
doesn't matter what the charset dropdown selection in IMP is set to
for drafts; obviously in dimp, data MUST be UTF-8 because of JSON
encoding.
Sure enough, UTF-8 is now hardcoded into the saveDraft() function call
(imp/compose.php:367). Is your browser somehow sending ISO-8859-1
instead?
Milestone ⇒
State ⇒ Unconfirmed
New Attachment: 0001-Encode-message-header-with-UTF-8.patch
Patch ⇒ Yes
Queue ⇒ IMP
Summary ⇒ Drafts headers are being badly encoded when they contain accented chars
Type ⇒ Bug
Priority ⇒ 1. Low
draft, the accented characters are wrongly displayed after that.
It seems to be a problem with the ISO-8859-1 encoding. My solution was
to encode it in UTF-8, but to be honest i don't know if this is the
correct fix.