From af14b3ec4bc4b2c411ba3c01ccfa68fe86faaa1a Mon Sep 17 00:00:00 2001 From: Alex Schroeder Date: Thu, 19 Jul 2012 10:53:13 +0200 Subject: [PATCH] Use binmode utf8 when sending files. --- rc2mail.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/rc2mail.pl b/rc2mail.pl index 1cd2f21a..746d1534 100644 --- a/rc2mail.pl +++ b/rc2mail.pl @@ -145,6 +145,7 @@ sub send_file { my ($id, $title, $item, @subscribers) = @_; return unless @subscribers; my $fh = File::Temp->new(SUFFIX => '.html'); + binmode($fh, ":utf8"); warn "No content for $title\n" unless $item->{description}; my $link = $item->{link}; my $sub = "$root?action=subscriptions";