6.0.0-beta1
7/7/25

[#9418] Drafts headers are being badly encoded when they contain accented chars
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

History
12/02/2010 05:16:06 PM Michael Slusarz Taken from Jan Schneider
State ⇒ Resolved
 
12/02/2010 04:47:43 PM goncalo (dot) queiros (at) portugalmail (dot) net Comment #6 Reply to this comment
Maybe one (or both) of this commits helps things out (?)
Fixed. Thanks ;)
12/01/2010 09:09:46 AM Michael Slusarz Comment #5 Reply to this comment
Maybe one (or both) of this commits helps things out (?)
12/01/2010 09:09:08 AM Git Commit Comment #4 Reply to this comment
Changes have been made in Git for this ticket:

Bug #9418: Header/Charset improvements/cleanups for IMP_Compose

http://git.horde.org/horde-git/-/commit/9172ca93856c6d0452f17641fb7c2ecd340c0257
12/01/2010 09:09:06 AM Git Commit Comment #3 Reply to this comment
Changes have been made in Git for this ticket:

Bug #9418: Honor chosen charset when saving drafts

http://git.horde.org/horde-git/-/commit/da85973be1f5475028e30a24c6a35ccf5df19a86
12/01/2010 06:34:54 AM Michael Slusarz Comment #2
State ⇒ Feedback
Assigned to Michael Slusarz
Assigned to Jan Schneider
Reply to this comment
I can't reproduce. With the recent charset changes we ALWAYS assume 
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?
11/30/2010 06:03:59 PM goncalo (dot) queiros (at) portugalmail (dot) net Comment #1
Milestone ⇒
State ⇒ Unconfirmed
New Attachment: 0001-Encode-message-header-with-UTF-8.patch Download
Patch ⇒ Yes
Queue ⇒ IMP
Summary ⇒ Drafts headers are being badly encoded when they contain accented chars
Type ⇒ Bug
Priority ⇒ 1. Low
Reply to this comment
When i compose an email with accented characters and save it as a 
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.

Saved Queries