Andy Baugh 6 anos atrás
pai
commit
eefec9accf
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4 0
      lib/Cpanel/iContact/Provider/Local.pm

+ 4 - 0
lib/Cpanel/iContact/Provider/Local.pm

@@ -68,6 +68,10 @@ sub send {
 	my $html    = ${ $args_hr->{'html_body'} };
 	$html =~ s:src=".*":src="/unprotected/cpanel/images/cp-logo.svg" style="width\:3rem":;
 
+	require Text::Iconv;
+	my $converter = Text::Iconv->new("UTF-8", "ASCII");
+	$html = $converter->convert($html);
+
     # Send it
     my $time = time;
     $time =~ tr/ /-/;