From f960955ece8decaa8827af29bab6900b37e130bd Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Sun, 25 Mar 2012 17:51:34 -0700 Subject: [PATCH] encode_rf1522 needs to handle utf8 strings --- Debbugs/MIME.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Debbugs/MIME.pm b/Debbugs/MIME.pm index c2faeaa..6406276 100644 --- a/Debbugs/MIME.pm +++ b/Debbugs/MIME.pm @@ -286,6 +286,9 @@ sub encode_rfc1522 { # handle being passed undef properly return undef if not defined $rawstr; + if (is_utf8($rawstr)) { + $rawstr= encode_utf8($rawstr); + } # We process words in reverse so we can preserve spacing between # encoded words. This regex splits on word|nonword boundaries and # nonword|nonword boundaries. We also consider parenthesis and " -- 2.39.2