Parcourir la source

Tell perl about the future

Zachary Kotlarek il y a 12 ans
Parent
commit
6bb6665de2
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      Fetch.pm

+ 1 - 0
Fetch.pm

@@ -655,6 +655,7 @@ sub save() {
 	if (!open(OUT, '>', $self->Fetch::file())) {
 	if (!open(OUT, '>', $self->Fetch::file())) {
 		die('Fetch::save: Unable to open output file: ' . $self->Fetch::file() . ': ' . $! . "\n");
 		die('Fetch::save: Unable to open output file: ' . $self->Fetch::file() . ': ' . $! . "\n");
 	}
 	}
+	binmode OUT, ':encoding(UTF-8)';
 
 
 	# Print out the URL, the post content (if any)
 	# Print out the URL, the post content (if any)
 	if (defined($self->{'print_comments'}) && $self->{'print_comments'}) {
 	if (defined($self->{'print_comments'}) && $self->{'print_comments'}) {