We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 982ffaf commit d7639fcCopy full SHA for d7639fc
utils/tut2wiki-cn.pl
@@ -1,8 +1,8 @@
1
#!/usr/bin/env perl
2
3
+use utf8;
4
use strict;
5
use warnings;
-use encoding 'utf8';
6
7
use Getopt::Std;
8
my %opts;
@@ -74,7 +74,9 @@
74
75
close $in;
76
77
-open $in, "<:encoding(UTF-8)", \$src;
+utf8::encode($src);
78
+
79
+open $in, "<:encoding(UTF-8)", \$src or die $!;
80
81
my $wiki = '';
82
undef $prev;
@@ -225,4 +227,3 @@
225
227
sub usage {
226
228
die "Usage: $0 [-o <outfile>] <infile>\n";
229
}
-
utils/wiki2html-cn.pl
@@ -1,6 +1,6 @@
@@ -232,4 +232,3 @@ sub fmt_code {
232
233
234
235
0 commit comments