X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Debbugs%2FMIME.pm;h=640627651581826bf8bcce5570d8acb46085a3ce;hb=f960955ece8decaa8827af29bab6900b37e130bd;hp=c2faeaa8621b3f5c580beb5c450425c1d39f9b6c;hpb=cfd3e0e6967532e9deafb74615134cc8c3255e16;p=debbugs.git 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 "