[imp] Problem with charsets (head)

W. Tasin tasin at fhm.edu
Thu Apr 8 01:44:30 PDT 2004


Jan Kuipers schrieb:

> Citeren Michael M Slusarz <slusarz at 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
-------------- next part --------------
--- 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;




More information about the imp mailing list