diff --git a/lib/github/commands/pod2html b/lib/github/commands/pod2html index aaed6022..b3f0f84d 100755 --- a/lib/github/commands/pod2html +++ b/lib/github/commands/pod2html @@ -13,4 +13,5 @@ $p->strip_verbatim_indent(sub { (my $indent = $lines->[0]) =~ s/\S.*//; return $indent; }); +binmode STDOUT, ':encoding(UTF-8)'; $p->parse_from_file(shift); diff --git a/test/markups/README.utf8.pod b/test/markups/README.utf8.pod new file mode 100644 index 00000000..b2f2d186 --- /dev/null +++ b/test/markups/README.utf8.pod @@ -0,0 +1,13 @@ +=encoding utf8 + +=begin html + +

Latin-1 range: «» é

+ +=end html + +=begin html + +

Above Latin-1: ੦..੯ ٠..٩

+ +=end html diff --git a/test/markups/README.utf8.pod.html b/test/markups/README.utf8.pod.html new file mode 100644 index 00000000..8ea0e7d0 --- /dev/null +++ b/test/markups/README.utf8.pod.html @@ -0,0 +1,3 @@ +

Latin-1 range: «» é

+ +

Above Latin-1: ੦..੯ ٠..٩