6.0.0-beta1
11/8/25

[#1442] french accent conversion
Summary french accent conversion
Queue Horde Framework Packages
Type Enhancement
State Resolved
Priority 3. High
Owners jan (at) horde (dot) org
Requester marc (at) r4l (dot) com
Created 02/25/2005 (7561 days ago)
Due
Updated 06/28/2006 (7073 days ago)
Assigned 02/25/2005 (7561 days ago)
Resolved 10/23/2005 (7321 days ago)
Milestone
Patch No

History
06/28/2006 08:18:00 PM fsantino (at) 4linux (dot) com (dot) br Comment #8
New Attachment: TelaCapturada-2.png Download
Reply to this comment
I've tried to apply this patch on

Kronolith H3 (2.0.6)



and it did not work.



My environment uses Brazilian Portuguese. The problem is: The attached 
ics is parsed and showed with wrong charset (see attachment).



I thought that applying this patch could solve my problem, but it did not.



Thanks,



Flavio Santino
10/23/2005 11:08:45 AM Jan Schneider Comment #7
State ⇒ Resolved
Reply to this comment
Looks like I implemented this back in March already.
10/23/2005 12:21:20 AM Jan Schneider Deleted Original Message
 
10/23/2005 12:21:09 AM Jan Schneider Deleted Original Message
 
08/07/2005 11:10:36 AM Jan Schneider Priority ⇒ 3. High
 
02/25/2005 10:07:11 PM Jan Schneider Assigned to Jan Schneider
State ⇒ Assigned
 
02/25/2005 09:46:57 PM marc (at) r4l (dot) com Comment #6
New Attachment: html2text.php[2].diff Download
Reply to this comment
OK, this should do it.
02/25/2005 09:21:06 PM Jan Schneider Comment #5 Reply to this comment
See http://www.php.net/manual/en/function.html-entity-decode.php
There actually exists a function now for that purpose in PHP, you 
don't even need to use the translation table anymore.



The decoding should be done *after* the current patterns, to convert 
all entities being left over. You may be able to remove some patterns 
though that are already covered by html_entity_decode().
02/25/2005 09:19:10 PM marc (at) r4l (dot) com Comment #4
New Attachment: html2text.php[1].diff
Reply to this comment
OK, I think I figured it out. Let me know if this fits what yoiu had in mind!



Note: initial tests show this is working great.
02/25/2005 09:08:49 PM marc (at) r4l (dot) com Comment #3 Reply to this comment
I'm not how to use the translation tables within the html2text package.



In the mean time, this gives a much more readable output.

I'd be ready to use PHP's translation table, but I'd need an overview 
on _where_ you would use this. Within html2text.php or within 
Filter.php? Would you replace the current patterns by this or just 
apply the translation before using those patterns?



Thanks.
02/25/2005 08:47:34 PM Jan Schneider Comment #2
State ⇒ Feedback
Reply to this comment
Wouldn't it make more sense to use PHP's HTML translation table and 
convert to the correct characters instead of the transliterated ones?
02/25/2005 08:29:55 PM marc (at) r4l (dot) com Comment #1
Priority ⇒ 1. Low
Type ⇒ Enhancement
Summary ⇒ french accent conversion
Queue ⇒ Horde Framework Packages
New Attachment: html2text.php.diff
State ⇒ New
Reply to this comment
Only show the letter on which the french accents apply when converting 
from HTML to text

Saved Queries