[imp] Umlauts and character problems with html mails

Jan Schneider jan at horde.org
Wed Mar 13 13:52:24 UTC 2013


Zitat von norbi <norbi at rocknob.de>:

> Am 13.03.2013 13:03, schrieb Jan Schneider:
>>
>> Zitat von norbi <norbi at rocknob.de>:
>>
>>>>
>>>> Zitat von norbi <norbi at rocknob.de>:
>>>>
>>>>>>
>>>>>> Zitat von norbi <norbi at rocknob.de>:
>>>>>>
>>>>>>>> Hi List,
>>>>>>>>
>>>>>>>> i cant see umlauts in emails, they was composed in html.
>>>>>>>> umlauts in the subjects are no problem, umlauts in text-mails are no
>>>>>>>> problem, only in html, i cant see umlauts.
>>>>>>>>
>>>>>>>> horde 5.0.4
>>>>>>>> imp 6.0.4
>>>>>>>> browser: firefox 19 / ie 9
>>>>>>>>
>>>>>>>> any hints, where i have to search for fixing this ?
>>>>>>>>
>>>>>>>> i see somthing like this :
>>>>>>>>
>>>>>>>> sagalnsgdnasdg#
>>>>>>>> sadgÀöÀöÀöasg
>>>>>>>>
>>>>>>>> asdg
>>>>>>>> ÀöasÀ
>>>>>>>> gösÀa
>>>>>>>> dgÀösa
>>>>>>>> dg
>>>>>>>>
>>>>>>>> norbert
>>>>>>>
>>>>>>>
>>>>>>> no answer here... after some digging i found "one solution".
>>>>>>>
>>>>>>> if i change line 198 in "imp/lib/Mime/Viewer/Html.php"
>>>>>>>
>>>>>>> from "$charset = 'UTF-8';" to "$charset = 'ISO-8859-1';" it works !
>>>>>>>
>>>>>>> but i dont think that thats the best solution ?
>>>>>>
>>>>>> Is this with all emails or just a few?
>>>>>> Does this affect emails written by IMP or read by IMP?
>>>>>
>>>>> seems to be a bug in horde/imp.
>>>>>
>>>>> because, if i send email over the same webmailsystem, the
>>>>> webmailsystem is using "Content-Type: text/html; charset=UTF-8". if i
>>>>> send email over my local thunderbird or outlook, they using
>>>>> "Content-Type: text/html; charset=ISO-8859-15".
>>>>>
>>>>> but horde has fixed in line 198 Html.php the chartset to UTF-8.
>>>>>
>>>>> so i think the right solution is "$charset =
>>>>> $this->_mimepart->getCharset();"
>>>>>
>>>>> right ?
>>>>
>>>> No.
>>>>
>>>>> affect emails read by IMP.
>>>>
>>>> What you write is confusing. Above you write it affects mail written by
>>>> IMP, here you write it affects email read by IMP.
>>>
>>> ok
>>>
>>> 1. writing emails via thunderbird/outlook to account that is read  
>>> by IMP, the problem exists
>>> 2. writing emails via IMP(same system as reading) to account that  
>>> is read by IMP,, the problem not exists
>>
>> Can you provide an example message that fails?
> strange, in horde 5.0.2/imp 6.0.1 the problem doesnt exist, but the  
> code is very different. if i uncomment "$charset = 'UTF-8';" the  
> umlauts are working too in 50.4/6.0.4
>
> mail:
>
> Message-ID: <51407247.3080606 at rocknob.de>
> Date: Wed, 13 Mar 2013 13:34:15 +0100
> From: norbi <norbi at rocknob.de>
> User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0)  
> Gecko/20130307 Thunderbird/17.0.4
> MIME-Version: 1.0
> To: testing at norbi.de1.biz
> Subject: umlaute test =?ISO-8859-15?Q?=23=E4=F6=E4=F6=FC?=
> Content-Type: multipart/alternative;
>  boundary="------------020801070105060502060605"
>
> This is a multi-part message in MIME format.
> --------------020801070105060502060605
> Content-Type: text/plain; charset=ISO-8859-15; format=flowed
> Content-Transfer-Encoding: 8bit
>
>      äösdgäösgüöüsagö
>
> asgdöüöäasg
>
> asdgöü
>
> umlauttest
>
>
> --------------020801070105060502060605
> Content-Type: text/html; charset=ISO-8859-15
> Content-Transfer-Encoding: 8bit
>
> <html>
>   <head>
>
>     <meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
>   </head>
>   <body text="#000000" bgcolor="#FFFFFF">
>     <font color="#ffcc00">    äösdgäösgüöüsagö<br>
>       <br>
>       asgdöüöäasg<br>
>       <br>
>       asdgöü<br>
>       <br>
>       umlauttest</font><br>
>     <br>
>   </body>
> </html>
>
> --------------020801070105060502060605--

You need to send the message as an attachment.
-- 
Jan Schneider
The Horde Project
http://www.horde.org/



More information about the imp mailing list