From 8952814ce3cd1fe131ce61dab82517bdba746883 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Thu, 27 Dec 2012 20:41:07 +0100 Subject: [PATCH] Gallery2: More UTF-8 --- gal2/UCW/Gallery.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gal2/UCW/Gallery.pm b/gal2/UCW/Gallery.pm index 86ebff8..9e2571a 100644 --- a/gal2/UCW/Gallery.pm +++ b/gal2/UCW/Gallery.pm @@ -101,7 +101,7 @@ sub require_thumbnails($$$) { sub write_list($$$) { my ($self, $file, $images) = @_; - open my $fh, '>', "$file.new" or die "Cannot create $file.new: $!\n"; + open my $fh, '>:utf8', "$file.new" or die "Cannot create $file.new: $!\n"; for my $i (@$images) { print $fh join("\t", $i->{file}, -- 2.39.2