namazu-users-en
[Top] [All Lists]

Re: Mailman & "Charactères Français" (resolved with patch)

2003-06-04 08:58:00
I solved my problem. Changed $num >=127 to 256.

/usr/share/namazu/filter/html.pl

# Decode a numberd entity. Exclude an invalid number.
sub decode_numbered_entity ($) {
    my ($num) = @_;
    return ""
        if $num >= 0 && $num <= 8 ||  $num >= 11 && $num <= 31 || $num >=256;
    sprintf ("%c",$num);
}

I'll keep you posted if this severley breaks something. But for now this seems
to work.

Quoting Makoto Fujiwara <makoto(_at_)ki(_dot_)nu>:

Hi, I may be totally off topic, but what is your ENVIRONMENT 
values ?
I have mknmz with (tcsh)
  env LANG=C mknmz -a -O O your_mail
HTML results show "troisième" as it is, but with