Andy Baugh 6 gadi atpakaļ
vecāks
revīzija
eefec9accf
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  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/ /-/;