I have found this in the archives, but I did not find a solution yet.
On a mailserver that I have upgraded to Debian Sarge, the following
warning appears when I am running sa-learn:

Parsing of undecoded UTF-8 will give garbage when decoding entities at
/usr/share/perl5/Mail/SpamAssassin/HTML.pm line 182.


I have found the following patch but it does not apply successfully
using "patch":

--- lib/Mail/SpamAssassin/HTML.pm       (revision 178588)
+++ lib/Mail/SpamAssassin/HTML.pm       (working copy)
@@ -107,6 +107,15 @@
                ],
                marked_sections => 1);

+  # enable UTF-8 mode,
+  # http://search.cpan.org/~gaas/HTML-Parser-3.45/Parser.pm#$p-%3Eutf8_mode ,
+  # if we're running perl 5.8 and HTML::Parser supports it.  bug 4046.
+  if ($] >= 5.008 && $self->can("utf8_mode")) {
+    if (!eval { $self->utf8_mode(); 1; }) {
+      dbg ("html: failed to enable UTF-8 mode (perl ver $] h:p ver 
$HTML::Parser::VERSION)");
+    }
+  }
+
   $self;
 }

How do I solve this?

Regards
Johann
-- 
Johann Spies          Telefoon: 021-808 4036
Informasietegnologie, Universiteit van Stellenbosch

     "Be not deceived; God is not mocked; for whatsoever a
      man soweth, that shall he also reap."               
                                   Galatians 6:7 

Reply via email to