| Summary | charset problem in html file in attachment |
| Queue | IMP |
| Queue Version | 4.3.2 |
| Type | Bug |
| State | Not A Bug |
| Priority | 1. Low |
| Owners | |
| Requester | patrick (dot) guiran (at) linagora (dot) com |
| Created | 07/01/09 (223 days ago) |
| Due | |
| Updated | 07/07/09 (217 days ago) |
| Assigned | |
| Resolved | 07/02/09 (222 days ago) |
| Attachments | capture.jpg ![]() |
| Milestone | |
| Patch | No |
content-type of the part is wrong. It's setted with a call like this :
$msg->setCharset(NLS::getCharset());
So every html part gets an "UTF-8" encoding, which can be wrong.
What would you say about reading and setting charset for an html attachment ?
1867. And there is no reliable way to auto-determine the charset of a
text file. Therefore, we fall back to the only information we are
provided from the remote OS - the charset supported by the browser.
inline display, so they are necessarily stripped from the HTML
source. Charset must be indicated in the content-type for the part,
not a meta tag. If you want to view an unadulterated version,
download the file to your local machine and view the local copy.
content-type of the part is wrong. It's setted with a call like this :
$msg->setCharset(NLS::getCharset());
So every html part gets an "UTF-8" encoding, which can be wrong.
What would you say about reading and setting charset for an html attachment ?
Regards,
State ⇒ Not A Bug
inline display, so they are necessarily stripped from the HTML source.
Charset must be indicated in the content-type for the part, not a
meta tag. If you want to view an unadulterated version, download the
file to your local machine and view the local copy.
State ⇒ Unconfirmed
New Attachment: capture.jpg
Patch ⇒
Milestone ⇒
Queue ⇒ IMP
Summary ⇒ charset problem in html file in attachment
Type ⇒ Bug
Priority ⇒ 1. Low
remove all <meta> tag.
By removing the <meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1"> tag, the content of the attachment isn't
displayed correctly, due to charset problem, as my browser is
configured with UTF-8 charset.
See the capture to see the problem.
To solve the problem, the only solution I have found is to disable the
XSS filter on <meta> tags, by commenting lines 146 to 150 of file
lib/Horde/Text/Filter/xss.php, ie. the definition of the <meta> tag
pattern, in the $malicious array.
Regard
Patrick,