瀏覽代碼

Tell perl about the future

Zachary Kotlarek 12 年之前
父節點
當前提交
6bb6665de2
共有 1 個文件被更改,包括 1 次插入 和 0 次删除
  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'}) {