Explorar o código

Tell perl about the future

Zachary Kotlarek %!s(int64=12) %!d(string=hai) anos
pai
achega
6bb6665de2
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      Fetch.pm

+ 1 - 0
Fetch.pm

@@ -655,6 +655,7 @@ sub save() {
 	if (!open(OUT, '>', $self->Fetch::file())) {
 		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)
 	if (defined($self->{'print_comments'}) && $self->{'print_comments'}) {