From: Don Armstrong Date: Mon, 26 Mar 2012 00:51:34 +0000 (-0700) Subject: encode_rf1522 needs to handle utf8 strings X-Git-Tag: release/2.6.0~376^2~22 X-Git-Url: https://git.donarmstrong.com/?p=debbugs.git;a=commitdiff_plain;h=f960955ece8decaa8827af29bab6900b37e130bd encode_rf1522 needs to handle utf8 strings --- 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 "