[prev in list] [next in list] [prev in thread] [next in thread] 

List:       imp
Subject:    Re: [imp] Problem with charsets (head)
From:       "W. Tasin" <tasin () fhm ! edu>
Date:       2004-04-08 8:44:30
Message-ID: 407510EE.6020501 () fhm ! edu
[Download RAW message or body]

Jan Kuipers schrieb:

> Citeren Michael M Slusarz <slusarz@bigworm.colorado.edu>:
>
>> Try what I just committed.
>
>
> This works for me. Thanks!
>
> -- 
> Jan Kuipers
> Systeembeheer Lauwers College
>
But this doesn't work for me anymore.
Because viewing a text/html attachment doesn't change the content and so 
UTF-8 chars are displayed in a ISO-8859-1 frame/window, yet.

See below for a patch which makes it working again.
Testet with IE 6.0.2088 (German/Win), Netscape 7.1 (German/Win), 
Netscape 4.8 (English/Linux), Mozilla 1.4 (English/Linux), Mozilla 1.6 
(English/Windows)

Ciao

Walter

["imp_view.diff" (text/plain)]

--- imp/view.php	Wed Apr  7 18:39:39 2004
+++ imp/view.php	Thu Apr  8 10:18:21 2004
@@ -116,6 +116,7 @@
     $charset = $mime->getCharset(true);
     if ($charset) {
         $type .= '; charset=' . $charset;
+        $body = String::convertCharset($body, NLS::getCharset(), $charset);
     }
     $browser->downloadHeaders($mime->getName(true, true), $type, true, strlen($body));
     echo $body;




-- 
IMP mailing list - Join the hunt: http://horde.org/bounties/#imp
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: imp-unsubscribe@lists.horde.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic