This is a patch intends to make ezmlm-www-1.4.3 to display CJK characters properly. Basically s/iso-8859-1/utf8/g in ezmlm-www.pl will do the same thing. I suggest all those CJK maillist admins to change the default font size of
and .ez_medium{} from 10pt to 12pt as well (edit the css) ,
with aesthetics reason.
Contact bencrox(at)gmail(dot)com , or http://www.bencrox.info/#pub for details.
(zh.HK / zh.TW) translation is available at there.
--- ezmlm-www.pl 2006-06-10 23:56:26.000000000 +0800
+++ ezmlm-www.pl 2006-07-22 08:31:25.000000000 +0800
@@ -162,7 +162,7 @@
for (@MessageIDs) {
print "' . Encode::decode( 'iso-8859-1', htmlencode(conceal($part->{body}, $WebRequest{List})) ) . '';
+ $plaintext .= '' . Encode::decode( 'utf8', htmlencode(conceal($part->{body}, $WebRequest{List})) ) . '';
} elsif ($part->{type} eq 'text/html') {
if ($WebRequest{List}->{show_html}) {
my $url = "?$WebRequest{ListID}::$WebRequest{MessageID}:get:$i";
@@ -233,7 +233,7 @@
$iframe .= 'marginheight="0" frameborder="0" vspace="0" hspace="0" ';
$iframe .= 'style="overflow:visible;width:100%;display:none">';
} else {
- $rawhtml .= '' . Encode::decode( 'iso-8859-1', htmlencode(conceal($part->{body}, $WebRequest{List})) ) . '';
+ $rawhtml .= '' . Encode::decode( 'utf8', htmlencode(conceal($part->{body}, $WebRequest{List})) ) . '';
}
} elsif ($part->{type} !~ m,^(?:text/(?:plain|html|enriched)|application/applefile)$,) {
$attachments{$i} = $part;