6.0.0-beta1
7/19/25

[#132] htmlspecialchars and other encodings
Summary htmlspecialchars and other encodings
Queue Horde Framework Packages
Type Enhancement
State Rejected
Priority 1. Low
Owners
Requester vilius (at) lnk (dot) lt
Created 04/27/2004 (7753 days ago)
Due
Updated 05/07/2004 (7743 days ago)
Assigned
Resolved 05/07/2004 (7743 days ago)
Milestone
Patch No

History
05/07/2004 01:28:17 PM Jan Schneider Comment #5
State ⇒ Rejected
Reply to this comment
No, this won't happen. This is a "preview" and it will always show the 
raw email body. It already now produces a huge overhead but taking 
charsets into account would need to completely parse every single 
message with the MIME framework. That would actually take as long as 
watching every single message in a mailbox.
05/07/2004 01:18:44 PM vilius (at) lnk (dot) lt Comment #4 Reply to this comment
It seems that the problems is not with htmlspecialchars. We need to 
convert each tooltip text from email message encoding to 
NLS::getCharset(). I would submit a patch if only knew how to write it 
:)



p.s. you should change ticker type to BUG.
04/27/2004 02:45:07 PM Jan Schneider Comment #3 Reply to this comment
I don't think we will implement such a thing. Because there is no way 
to find out if the needed charset is currently supported by 
htmlspecialchar(), we would have to use this workaround for *every* 
htmlspecialchar() call, degrading the perfomance massively.



I don't consider this whole thing a huge problem though, because UTF-8 
is supported and OSes not supporting UTF-8 will disappear soon anyway.
04/27/2004 02:21:13 PM vilius (at) lnk (dot) lt Comment #2 Reply to this comment
04/27/2004 01:33:16 PM   New Attachment: htmlspecialchars.JPG
 
04/27/2004 01:32:48 PM vilius (at) lnk (dot) lt Comment #1
State ⇒ New
Priority ⇒ 1. Low
Type ⇒ Enhancement
Queue ⇒ Horde Framework Packages
Reply to this comment
It would be nice to have rewriten htmlspecialchars function, to 
support more encodings than native php's htmlspecialchars() has 
(http://www.php.net/manual/en/function.htmlspecialchars.php table no.1).



For now, I'm using windows-1257 encoding, and i'm getting broken HTML 
if tooltip preview is turned on (see attachment). It confuses some 
older browsers, and i can't get into my inbox at all.

Saved Queries